Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use the C++ software and if possible, show two different types of answers. Student Name 90.25 Anderson Blake 196 90 1915 755 155 95

image text in transcribed

image text in transcribed

Please use the C++ software and if possible, show two different types of answers.

Student Name 90.25 Anderson Blake 196 90 1915 755 155 95 80 55 85 100 90 Dang Engberg Farris Garda Hadad Ionescu chinson KO Lagos Mikhailov Now ONed STUDENT STATISTICS Student Total Numeric Letter Name Ponts Grade Grade Anderson 186.50 Blake 165.50 82.75 B Cru 85.00 42.50 F Dang 180.00 90.00 Engberg A Farms 145.00 72.50 C Garcia 114.10 92.05 Hadad 85.00 Q2.50 F Ionescu 195.50 9775 A Johnson FOO Kaloo 160.00 80.00 B Lagos 135.50 D Mikhalon 178.50 B quyen. 195.00 97,50 ON 155.00 C 60 95.5 90 85 125 100 25 75 555 195 195 185 8888BEER 100 ASSIGNMENT 2 Assignment 2 tests your knowledge of Selection (Chapter 4) and Repetition (Chapter 5). Write a program Your Name-Assignment2 (replace Your Name with your actual name, no spaces) that reads/inputs from a file' students' records (one student per line) with the following format: LastName Tests Grade Assignments Grade Sample console output: and computes and outputs (to the console) the STUDENT Sample input from data file: STATISTICS in a table format one line per student: Total Points? Numeric Grade Letter Grade The table should have the exact table headers. Cher The program should also compute and output (to the console) in the 2 rows 2 columns table format, the CLASS STATISTICS for the entire class: the number of students (row Number) and the average numeric grade' (row Average) among all students. All text/character columns should have the same width, be aligned to the left and all floating-point values align to the right and formatted with 2 decimals. CLASS STATISTICS You can test your program on the attached Grades.txt (do not Number edit the file) and you can check your output by comparing it to the sample output shown here, but your program should work on any other files that have the correct format, thus, do not hardcode the output or the number of students. The program needs to use loops/repetition statements to read the data from the files and selection statements (Chapter 4) to compute the letter grades. You should write the program in Visual Studio 2019 using only concepts learned in class so far (Chapters 1 to 5, so, without arrays, functions, pointers, references, and any other concepts not studied in class so far). Create a Microsoft Word document called YourName-Assignment2-Screenshots.docx (replace Your Name with your name, no spaces) that contains screenshots of your entire C++ code in editor (take multiple screenshots if the code is larger than one screen and is not readable in one screenshot), and the entire program console output in the Console Output Window for the attached Grades.txt (take multiple screenshots if the output is larger than one window). SUBMIT your Your Name-Assignment2.cpp Visual Studio 2019 C++ source code and Your Name-Assignment2- Screeshots.docx screenshots document files under Assignment2 on eCampus. Do not archive the files (no ZIP, RAR or other archived files) or submit other file formats. The program should work on any file with that format with different numbers of line. Do not hardcode the number of lines, compute it instead when you read from the file. 2 You compute the Total Points as the sum between Tests and Assignments. 3 You compute the Numeric Grade as the total points (from all the evaluations) divided by 2. The value will be between 0 and 100 * The Letter Grade is: A if the numeric grade is between 89.5 and 100, B if the numeric grade is between 79.5 and 89.49, C if the numeric grade is between 69.5 and 79.49, Dif the numeric grade is between 59.5 and 69.49, and F if the numeric grade is between O and 59.49. 5 The table header should have the exact text, but it does not have to be on 2 separate lines/rows, you can put them on one row (.e.g. "Total Points on one row) The number of lines from the file The sum of all the numeric grades divided by the number of students 7 95 Anderson Blake 75.5 Cheg 0 Dang 95 Engberg 80 Farris 55 Garcia 93.6 Hadad 65 Ionescu 100 Johnson 75 Kaloo 75 Lagos 55.5 Mikhailov Nguyen 95 O'Neil 85 91.5 90 0 85 100 90 90.5 60 95.5 90 85 80 75 100 70 83.5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions