Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve . Thank you zoomed in on the sample input so it can be seen clearly 19 4 Art GE LES Cro GR re

Please solve . Thank you image text in transcribed
image text in transcribed
zoomed in on the sample input so it can be seen clearly image text in transcribed
19 4 Art GE LES Cro GR re TEL GB 15 IS SES TA 195 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: Laste Tests Grade Ants Grade and computes and outputs to the console) the stude Sample Input from date file Sample console output STUDENT STATISTICS STATISTICS In a table format one line per student: studente Total toitainere Orade letter Orade IN The table should have the exact table header 10 . The program should also compute and output to the console) in 2000 the 2 rows 2 columns table format, the CLASS STATISTICS for the entire class: the number of students frow Number) and the 105 average numeric grade (row Average) among all students. All text/character columns should have the same width, be 53 aligned to the left and all floating-point values align to the right and formatted with 2 decimals. C.RS STATISTICS You can test your program on the attached Grades, txt (do not 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 Your Name-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 YourNome-Assignment2.cpp Visual Studio 2019 C++ source code and YourNome-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 ine. Do not hardcode the number of lines, compute it instead when you read from the file. * You compute the total points as the sum between Tests and Assignments. You compute the rhumerie Grade as the total points from all the evaluations) divided by 2. The value will be between 0 and 100 The Letter Grade is: if the numerik grade is between 89.5 and 100, B if the numeric grade is between 79.5 and 89.49, Cif the numeric grade is between 69.5 and 79.49, D if the numeric grade is between 59.5 and 69.49, and F if the numeric grade is between O and 59.49 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 (eg "Total Points on one row) The number of lines from the file 7 The sum of all the numeric grades divided by the number of students Grades.txt.docx Anderson 91.5 95 Blake 75.5 90 Cheg 0 0 Dang 95 85 Engberg 80 100 Farris 55 90 Garcia 93.6 90.5 Hadad 65 60 Ionescu 100 95.5 Johnson 75 90 Kaloo 75 85 Lagos 55.5 80 Mikhailov 75 83.5 Nguyen 95 100 O'Neil 85 70 ormat: Sample input from data file: Anderson Blake Guz Dang Engberg Farris Garda Hadad Ionescu Johnson Kaloo Lagos Mikhailov Nguyn O'Ned 91.5 75.5 55 95 80 55 93.6 25 100 75 75 55.5 95 95 85 95 90 30 8S 100 90 90.5 60 95.5 90 8S 80 83.5 100 70 Sample console output: STUDENT STATISTICS: Student Total Numeric Letter Name Pants Grade Grade Anderson 186.50 93.25 A Blake 165.50 82.75 B Cruz 85.00 42.90 F Dang 180.00 90.00 Engberg 180.00 90.00 Farris 145.00 72.50 Garcia 184.10 92.05 Hadad 85.00 42.50 F Ionescu 195.50 97.75 Johnson 165.00 82.50 B Kaloo 160.00 80.00 B | Lagos 135.50 67.75 D Mikhailov 178.50 89.25 B QUYn. 195.00 97.50 A O'Neil 155.00 77.50

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions