To gain experience designing and writing your own java


Assignment: Stock Transaction Simulator

Learning Objectives:

To install and use eclipse, an Integrated Development Environment (IDE) for Java
To gain experience designing and writing your own Java Program
To use of Java APIs to perform interactive I/O in Java programming
To declare variables and constants appropriately.

Problem Statement

Last month Steven purchased some stock in Acme Software, Inc. Here are the details of the purchase:

• The number of shares that Steven purchased was 1,000

• When Steven purchased the stock, he paid $33.92 per share

• Steven paid his stockbroker a commission that amounted to 2% of the amount he paid for the stock.

One week later, Steven sold the stock. Here are the details of the sale:

The number of shares that Steven sold was 1,000

He sold the stock for $36.78 per share

He paid his stockbroker another commission that amounted to 2% of the amount he received for the stock.

Please write a program that displays the following information:

• The amount of money Steven paid for the stock.

• The amount of commission Steven paid his broker when he bought the stock.

• The amount that Steven sold the stock for.

• The amount of commission Steven paid his broker when he sold the stock

• Display the amount of profit that Steven made after selling his stock and paying the two commissions to his broker (If the amount of profit that your program displays is a negative number , then Steven lost money on the transaction)

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: To gain experience designing and writing your own java
Reference No:- TGS01083856

Expected delivery within 24 Hours