Question: Write a program that reads an unknown number of records from an input file, prog5_251inp.txt . Each record contains a student ID# , the students

Write a program that reads an unknown number of records from an input file, prog5_251inp.txt. Each record contains a student ID#, the students semester average, and the letter grade earned. The program should determine how many students passed, how many failed and how many of each letter grade was assigned. It should then write to an output file prog5_251out.txt the input values in tabular form followed by the calculated values. Refer to the sample file output below.

Do not write this program using functions other than main and those described below. Do not use classes or arrays. (You need practice writing a sentinel value read loop.) Use only the tools presented in lecture. The use of global variables is not allowed.

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!