Question: Write a program that stores the floating point value 16.7 in the variable num1 and the floating value 18.7 in the variable number 2 have

Write a program that stores the floating point value 16.7 in the variable num1 and the floating value 18.7 in the variable number 2 have your program calculate the the total of these numbersand their average. store the totalin variable name total and the average in variable name average.(use the statement average =total/2.0; to calculate the average)

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!