Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A programmer has been asked to write a program that accepts exam scores (all based on the same possible points for each test) as input

image text in transcribed

image text in transcribed

image text in transcribed

A programmer has been asked to write a program that accepts exam scores (all based on the same possible points for each test) as input from the user and to calculate the average of the exam scores. The program should prompt the user with "Enter an exam score: " for each score entered. The programmer has no idea how many exam scores will be entered. The program should calculate the average of the tests entered. The tests can contain numbers to the right of the decimal. After all exams scores are entered, the programs should display the number of exams entered, the total points entered and the average of the exams entered. Format the output in one sentence as follows: You entered 3 exams totaling 240.0 points. Your average is 80.00. 6 A variable is needed to give the programmer the possibility of displaying the total points entered. Write a C\# statement defining the variable (5 points) 47 Using the scenario above: (a) How do you stop the loop if using a while or do-while loop? (5 points) (b) How does the user know what to enter to cause the loop to stop? (5 points) 8 Write a program that reads a file called ClassGrades.txt stored in ...\bin \ Debug that calculates the average grade, the minimum grade and the maximum grade from the grades included in the file. ( 30 points) using System; using Sxstem Collections Generic; using Systemeling; using Sxstem Text; using System Threading,Tasks; using System.IO; namespace Classstats \{ class Program \{ static void Main(string[] args) \{

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions