Question: Hey Help with these programs In c++ language Thanks Exercise#3 Write a C++ program th but at calculates the average of four numbers-just like in
Exercise#3 Write a C++ program th but at calculates the average of four numbers-just like in the previous exercise- this time ask the user to enter command to get all four numbers from the user which four numbers to colculate. You will have to use the cin Sample Output Enter the first number: (number1) Enter the second number: (number2) Enter the third number: (number3) Enter the fourth number: (number4) The average of these numbers is: (average) Exercise #4: Write a C++ program that will calculate the following input: how much of a profit an investor will make. You will need to get the number of shares they purchased the price of the stock (per share) when they purchased it the price of the stock (per share) now . The formula to use: Profit = (# of shares * Current Price) - (# of shares * Purchase Price) Output this message to the screen You have made a profit of this stock. dollars since you bought shares of Also, you must display the dollar amount formatted to two decimal places. Place this statement at the start of your program cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
