Question
Develop an algorithm using top-down design and step-wise refinement to solve the problem listed below. Then implement your algorithm in C++. #include not Listed on
Develop an algorithm using top-down design and step-wise refinement to solve the problem listed below. Then implement your algorithm in C++. #include
Listed on an input file is data for a class of 13 students. Each record contains a students ID, daily average and xam average. Create parallel arrays, a string array to store the student IDs and a real array to store the averages. After reading the input data into the respective arrays, calculate the semester average, storing the results for each student in the array of averages. Use the semester average to determine the associated letter grade for the semester, storing the resulting letter in a third parallel array. Generate a grade report and print to an output file.
Input File A00123456 9.13 90.00 A00234567 8.75 86.67 A00345678 8.75 94.00 A00456789 6.13 59.00 A00112233 8.13 43.00 A00445566 6.88 76.67 A00556677 6.25 57.00 A00667788 9.13 76.33 A00778899 8.88 77.00 A00998877 9.25 54.67 A00887766 7.75 78.33 A00776655 8.00 73.00 A00665544 9.00 83.00
Output (prog6_251out.txt):
The output should have an appearance similar to the output in program #5. The data should be neatly aligned under the respective column headers. Format semester averages to two decimal places for the final run.
Processing Main will call functions to do the following: (All but one is void.)
Fill parallel arrays with student data read from an input file
Calculate student averages
Determine semester letter grades
Print authors identifying information to the output file
Print grade report title/column headers to the output file
Get the number of decimal places to display on grade report
Print student records to grade report
Print authors identifying information to the console
Print output file notification to the console
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started