Question: C++ LANGUAGE!!!! Write a program to calculate stock transaction. The program will ask the user to enter the follow information: The name of the share

C++ LANGUAGE!!!!

Write a program to calculate stock transaction. The program will ask the user to enter the follow information:

The name of the share purchased

The number of shares purchased

The price per share purchased

the price per share sold

In this question, we assume the user sold all the shares purchased. The user will pay the stockbroker a commission that amounted to 2% of the amount he/she paid for the stock when the user purchased the stock. The user will pay the stockbroker another commission that also amounted to 2% of the amount he/she paid for the stock when the user sold the stock.

Then the program will calculate the following:

the amount of money paid for the stock for the stock purchase

the amount of commission paid to the broker for stock purchase

the total amount of money paid for the stock purchase transaction

the amount of money sold for the stock

the amount of commission paid to the broker for stock sale

the total amount of money the user got for stock sale after paying the commission

the net profit after selling the stock and paying two commissions to the broker

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!