Write a .NET Framework Console Application that continuously prompts the user to enter a score as a double. Add this sco
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a .NET Framework Console Application that continuously prompts the user to enter a score as a double. Add this sco
Write a .NET Framework Console Application that continuouslyprompts the user to enter a score as a double. Add this score to atotal and find the average of all scores entered on each iterationof a loop, and display this info to the user for each iteration aswell. Stop only when the user enters -1, and then display a goodbyemessage. Sample output: Please enter a score (OR -1 TO QUIT ): 5Total = 5, Average = 5 Please enter a score (OR -1 TO QUIT ): 7Total = 12, Average = 6 Please enter a score (OR -1 TO QUIT ): 5Total = 17, Average = 3.4 Please enter a score (OR -1 TO QUIT ): -1Goodbye and thanks for playing! FOR C# PLEASE