Question: Assignment Overview Prof Decker is overwhelmed. It is the end of the semester and he is required to submit his student's final grades. He is

Assignment

Overview

Prof Decker is overwhelmed. It is the end of the semester and he is required to submit his student's final grades. He is teaching a split-level course with both graduate and undergraduate students. He needs you to create a final grades submission file for his class.

Specifications

The graduate students were required to take four tests while the undergraduate students were required to take three tests.

The graduate grading scheme is:

Test #1 -- 20%

Test #2 -- 25%

Test #3 -- 25%

Test #4 -- 30%

The undergraduate grading scheme is:

Test #1 -- 30%

Test #2 -- 35%

Test #3 -- 35%

The student data is stored in a "students.txt" file that has all of the students names and test scores. The file has the following configuration:

(first name) (last name) (U/G) (Test1) (Test2) (Test3) (Test4)

*Note: grads have 4 test grades while undergrads have 3 test grades

Requirements

Create a "grades.txt" file that has the final grades for each of Prof

Decker's students. The file should have the following configuration:

(last name) (first name) (final grade)

last name - 15 character field, left justified

first name - 15 character field, left justified

final grade - 6 character field, right justified,

decimal format, one decimal place,

decimal always shown

The final grades must be calculated using the above mentioned grading scheme for grad or undergrad. The following files are given to test your program:

"students.txt" input file

"grades.txt" - output file

Submission

You will submit one file for credit:

assignment2.cpp - your Assignment 2 source code

 Assignment Overview Prof Decker is overwhelmed. It is the end of

the semester and he is required to submit his student's final grades.

4:53 Done grades SC150.txt DixonDary 93.8 Grimes Rick Rhee Glenn 93.7 96.8 Greene Maggie 87.1 Grimes Carl Peletier Carol Greene Beth Williams Sasha Chambler Tara Espinosa Rosta 90.4 Porter Eugene 97.2 84.1 90.3 82.3 84.6 83.4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!