Question
c++ Write a program [YourName]-Assignment2B (replace [YourName] with your actual name, no spaces) that reads from a file (with variable number of records) student names
c++
Write a program [YourName]-Assignment2B (replace [YourName] with your actual name, no spaces) that reads from a file (with variable number of records) student names and the grades for 2 tests (the points are floatingpoint numbers between 0 and 100) (format: Name Test1 Test2) and determines and outputs for each student the overall total points for all tests (column Total Points) 1, the numeric grade (column Numeric Grade) 2 (between 0 and 100) and the letter grade (column Letter Grade) 3 . The program should also compute and output the number of students (row Number), and average numeric grade (row Average) among all students and displays them with 2 decimals. Display the output in the exact format shown below (use 2 decimals for floating-point numbers and the columns and alignment suggested bellow):
Sample input data file: Sample console output: Anderson 90.5 80.75 Blake 75 90 Castillo 55 80 Dang 95 85 Engberg 80 100 Fu 55 90.5 Garcia 99 90 Hung 35 60 Iona 60.75 60 Johnson 65 40 STUDENT STATISTICS: Name Total Points Numeric Grade Letter Grade Anderson 171.25 85.63 B Blake 165.00 82.50 B Castillo 135.00 67.50 D Dang 180.00 90.00 A Engberg 180.00 90.00 A Fu 145.50 72.75 C Garcia 189.00 94.50 A Hung 95.00 47.50 F Iona 120.75 60.38 D Johnson 105.00 52.50 F CLASS STATISTICS: Number: 10 Average: 74.33 Minimum: 47.50 Maximum: 94.50
Your program should work on the Grades.txt (from the assignment do NOT change the name of the file or edit the file) and any other files that have the correct format, thus, do not hardcode the output or the number of students. For 10 extra credit points, compute the minimum and maximum of the numeric grades and output them the CLASS STATISTICS table. In addition to the complete CPP code ([YourName]-Assignment2B.cpp), you should submit a screenshot Word document ([YourName]-Assignment2B.docx) that contains screenshots of your full C++ code (take multiple screenshots if the code is larger than one screen), and the full console output (take multiple screenshots if the output is larger than one window).
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