Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

it need to be done in C++ program. the file should be file.cpp (NOT file.c). PROJECT#2 [Student Grades] Due Date: Displayed on TRACS 100 points

image text in transcribedimage text in transcribed

it need to be done in C++ program. the file should be file.cpp (NOT file.c).

PROJECT#2 [Student Grades] Due Date: Displayed on TRACS 100 points CS 2308 Department of Computer Science, Texas State Universit The program will print a grade report for students in a course. Input: An instructor has a class of no more than 40 students each of whom takes 6 tests. For each student in the class, there is one line in the input file. The line contains the student's first name (no more than 10 characters), last name (no more than 12 characters), ID# a string of 6 characters) and 6 integer test scores. Input text file should be named student input.dat Example of file input: Adam Zeller 452313 78 8691 64 90 76 Barbara Young 274253 88 77 91 66 82 93 Carl Wilson 112235 87 99 76 93 95 94 Note that a different file will be used for testing. Also note that amount of blank spaces between names, ID, and grades can be arbitrary, i.e., any number. There will be at least one space though. There might be a space between the last grade and the invisible symbol that signifies the end of the line "'. Total amount of characters for each line will not exceed 256, including the end of the line symbol Processing: The program is to read the input file and calculate each student's average and letter grade for the course. The average is calculated by dropping the student's lowest test score and then averaging the remaining 5 scores. In addition, the number of students receiving each letter grade (A, B, C, D, or F for the course is to be calculated. The cutoff for the letter grades is 89.5 for an A, 79.5 for a B, 69.5 for a C, 59.5 for a D output: The program is to print to an output file (student results.dat) a table showing each student's name (Last, First), identification number, course average (rounded to 1 decimal place) and letter grade. Following the last student, a summary of the number of students receiving each letter grade is to be printed. All output should be clearly labeled and easy to read. The output file should have a meaningful heading at the top of the file Example of file output Last name First name ID Average Score Grade 452313 Zeller Adam 82.3

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

help asp

Answered: 1 week ago