Question: Declare double variables 1,2,3, and 4, and read each variable from input in that order. Find the average of 1,2,3, and 4 and assign the

 Declare double variables 1,2,3, and 4, and read each variable from

Declare double variables 1,2,3, and 4, and read each variable from input in that order. Find the average of 1,2,3, and 4 and assign the result to avgNum. The calculation is: average =4x1+x2+x3+x4 Ex: If the input is 3.04.52.01.5, the output is: 2.75

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!