Problem

(Program) Write a C++ program that stores the number 105.62 in the variable firstnum, 89...

(Program) Write a C++ program that stores the number 105.62 in the variable firstnum, 89.352 in the variable secnum, and 98.67 in the variable thirdnum. (Be sure to declare the variables first as float or double.) Have your program calculate the total of the three numbers and their average. The total should be stored in the variable total and the average in the variable average. (Use the statement average = total /3.0; to calculate the average.) Use a cout statement to display the total and average.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 2.3