Question: Provide the pseudo - code and a C + + application to help Investors to calculate the profits after their investments. Through a broker, the

Provide the pseudo-code and a C++ application to help Investors to calculate the profits after their investments.
Through a broker, the Investors buy a number of shares then after a while they sale these shares when they see the share price is growing up.
*Frist, the application should declare variable, display message to ask the investors to enter their information from the keyboard about:
* Investor name (string)
* number of shares the investors want to invest (int)
* purchase price of one share (float)
* sale price of one share (float)
*The broker will charge commission fee rate 1.79% on the total of the purchase shares money and on the total of the sale shares money ==> Declare the commission fee rate as a constant
const float COMISSION_FEE_RATE =1.79f; (This means the rate is 1.79%)
The formula to calculate the profit from the investment as below:
PURCHASE
The money of shares purchased = purchase price of one share * number of shares
Commission fee on purchasing = The money of shares purchased * commission rate
Total of money paying on purchasing = The money of shares purchased + commission fee on purchasing
SALE
The money of shares sold = sell price of one share * number of shares
Commission fee on selling = The money of shares sold * commission fee rate
Total money getting from selling = The money of shares sold - commission fee on selling
The profit from the investment = Total money getting from selling - Total of money paying on purchasing
*After calculating, the application must display the result on the screen in 11 output lines in the following format with the name and numbers should be aligned to the right and with 2 decimal digits.
Notes: You must complete reading input before displaying the output and write the comments for each task (not for each line of the code)
The formula to calculate the profit from the investment are:
PURCHASE
Total purchase amount = purchase price of share unit * number of shares
Commission fee on buying = Total purchase amount * purchase commission fee rate
Total of invested money = Total purchase amount + commission fee on buying
SALE
Total sell amount = sale price of share unit * number of shares
Commission fee on selling = Total selling amount * selling commission fee rate
The money getting from selling = Total sell amount - commission fee on selling
The profit from the investment = The money getting from selling - Total of invested money

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 Accounting Questions!