Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ fun assignment ASSIGNMENT 2B Write a program YourName-Assignment2B (replace [YourName] with your actual name, no spaces) that reads from a file (with variable number

C++ fun assignmentimage text in transcribed

ASSIGNMENT 2B 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 floating- point numbers between 0 and 100) (format: Name 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: Testl Test2) and determines and outputs Sample console output: STUDENT STATISTICS Total Points 171.25 165.00 135.00 180.00 180.0 145.50 189.00 95.00 120.75 105.00 Numeric Grade 85.63 82.50 67.50 90.00 90.00 72.75 94.50 47.50 60.38 52.50 Letter Grade Name Anderson Blake Castillo Dang Engberg 80.75 90 80 85 100 90.5 90 60 60 40 Anderson Blake Castillo 90.5 75 95 80 Engberg Fu Garcia Hung Iona Johnson Garcia Hung Iona Johnson CLASS STATISTICS 35 60.75 65 Number: Average: Minimum: Maximum: 10 74.33 47.50 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 (YourNamel-Assignment2B.cpp), you should submit a screenshot Word document (YourNamel-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

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

Design a training session to maximize learning. page 296

Answered: 1 week ago

Question

Design a cross-cultural preparation program. page 300

Answered: 1 week ago