Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Hey Help with these programs In c++ language
Thanks image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago

Question

5. Describe how contexts affect listening

Answered: 1 week ago