Question: Make a C++ program and make calls for each task. Use a struct please. You need a program to maintain information about your stocks. Assume

 Make a C++ program and make calls for each task. Use

Make a C++ program and make calls for each task. Use a struct please.

You need a program to maintain information about your stocks. Assume that you have the following stocks: Write a C++ program which uses appropriate functions and parameter passing that will perform the following tasks: Task 1: Allow the user to enter in the data for each stock. (The user will not enter the $'s.) Task 2: Calculate the Initial Cost, Current Cost, and Profit for each stock. The formulas to use are: Initial Cost = Number of Shares*Buying Price Per Share Current Cost = Number of Shares * Current Price Per Share Profit = Current Cost - Initial Cost - Yearly Fees Print out the Stock Name, Initial Cost, Current Cost, and Profit for each stock. Task 4: Calculate and print the total initial cost, total current cost, and total profit for all 5 stocks. Task 5: Print out the number of stocks that had a positive profit, the number of stocks that had a negative profit, and the number of stocks that broke even, that is had a profit of $0.00

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!