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 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
Get step-by-step solutions from verified subject matter experts
