Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ Write a course grade computation program for an imaginary course. This must

ID: 3759068 • Letter: C

Question

 C++ Write a course grade computation program for an imaginary course. This must be for C++.  ----------------- INPUT FILE FORMAT -----------------  The input file shall consist of student information; information is organized into records.  There shall be 1 record per student.  The first line of the input file shall be the count of the number of records contained in the file:      NUMBER OF RECORDS  Each record of the input file shall contain this information:      Information             Data Type       Restrictions      STUDENT LAST NAME       string          No whitespace     STUDENT FIRST NAME      string          No whitespace     STUDENT TEST 1 SCORE    unsigned int    Accept 0-100 only     STUDENT TEST 2 SCORE    unsigned int    Accept 0-100 only     STUDENT TEST 3 SCORE    unsigned int    Accept 0-100 only     STUDENT TEST 4 SCORE    unsigned int    Accept 0-100 only     STUDENT TEST 5 SCORE    unsigned int    Accept 0-100 only     STUDENT GENDER          char            Accept only 'F' or 'M'  An example input file has been provided below: 
 Ace Jane 93 82 78 65 88 F  Acton John 93 82 78 65 88 M  Adams Abigail 93 82 78 65 88 F 
   -------------------- PROGRAM REQUIREMENTS --------------------  Use the input file format [see above] to help you develop code for reading course information from a plain text file.  Display the following menu for the main functions of the progam.      ===============================         Course Grading Program                Main Menu     ===============================      1.  Read a course input file     2.  Write a course summary file     3.  Quit the program      ===============================     Please choose [1,2, or 3]:     ===============================  The course grade computation program shall be named: grades  This means, to run the program in a persistent DOS window, the user would type      grades  then press the enter key.  The program shall use menus and interactive prompts to get information from the user.  The program shall perform the steps below.      1.  Display the main menu      2.  Execute the user's choice, do not allow invalid choices          a.  It is invalid to write a course summary file before first reading a course input file          b.  If option 1 [Read a course input file] is chosen, read the input file into parallel arrays of the correct data types          c.  If option 2 [Write a course summary file] is chosen, ask the user for the name of the summary file, then write it          d.  If option 3 [Quit the program] is chosen and the summary file has been written, then quit the program.          e.  If option 3 [Quit the program] is chosen and the summary file has not yet been written, ask the user for the name of the summary file, then write it, then quit the program.  ----- FILES -----  The program shall be responsible for the following 2 files:      1.  The input file     2.  The summary file  The format for the input file was described above.  The format for the summary file is yours to define, and should include a record for every student in the class.  Include a map for the summary file format in your submission.  The student record in the summary file shall include:      STUDENT NAME     STUDENT GENDER     STUDENT GRADE AVERAGE     STUDENT LETTER GRADE  For reference, show the grading scale in the summary file.  I wrote some similar code for a grading project from the past, but am usnure of how to modify it for this project. 

Explanation / Answer

#include #include #include using namespace std; int main(){ string fname,lname; char grade='A';'B';'C';'D';'F'; int totalpoints; int pscore1,pscore2,pscore3,pscore4,pscore5; int test1,test2; float paverage; float caverage; float taverage; ifstream fin; ofstream fout; //step 2 fin.open("input.txt"); if(!fin){ cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote