Home /
Expert Answers /
Computer Science /
please-help-show-the-steps-for-exercise-using-c-program-write-a-c-program-that-calculates-how-mu-pa533
(Solved): please help show the steps for exercise using C++ program Write a C++ program that calculates how mu ...
please help show the steps for exercise using C++ program
Write a C++ program that calculates how much profit an investor will make. You will need to ask the user for the following three inputs: - the number of shares the investor purchased - the price of the stock per share when the investor purchased it - the price of the stock per share now The formula to use: \[ \text { Profit. - (t of ahares * Current Price) - (t of whares * Purchase Price) } \] Print this message with the values you computed in the on the screen: Yot have made a profit of i \( \$ \) in dollars utrce You bought 1 ahares of thin stock. Also, you must display the dollar amount formatted to two decimal places. Include the header file at the top of your code (after \( + \) include) Hinelude Place this statement at the start of your program (after int masin () i): eut