Question: In C# can someone help get this console app started! Create a console app that uses a while loop to calculate the average of 3
In C# can someone help get this console app started!
Create a console app that uses a while loop to calculate the average of 3 test scores.
Input integers, but use the appropriate average data type.
Generally, you use a while to do something while a condition is true. You can use a while loop to execute a certain number of times. *While* this is not the best use of the while loop and another loop is generally more appropriate, it follows the pattern below
set a counter to 0 or 1
set a total variable to 0
while the counter is less the total (or less than or equal to, depending on if you started at 0 or 1)
write message asking for input read input parse to a number add number to total Calculate average print average with 2 decimal points precision*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
