Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

we have to compute the letter grades for a course. The data is a collection of student records stored in a file. Each record

we have to compute the letter grades for a course. The data is a collection of student records stored in a 

Data Checks. The only data check is that all the raw scores should be between 0 and 100. If any of the scores is outside this 

we have to compute the letter grades for a course. The data is a collection of student records stored in a file. Each record consists of a name(up to 20 characters), ID (8 characters), the scores of 10 homework assignments, a score for class participation, and the scores of three midterm tests and the final test (all positive integers). The maximum score a student can earn on any of these is 100. A sample file with 2 records is shown below: Pondicherry, John XPQ23456 91 48 76 0 23 91 91 84 95 93 81 76 84 91 73 Quincy, Jane XPL27856 81 58 76 40 73 49 91 84 89 93 90 79 94 81 73 Output Specifications. The output of the program is a file with the following data in each row , , The output for the above input would look like this: Pondicherry, John XPQ23456 38.65 39.7 78.35 C Quincy, Jane XPL.27856 39.2 40 79.2 C Note that all the fields in the output display are correctly aligned for easy reading; this requires the use of the setwidth operator, which is discussed in the early chapters of the text. The rules for calculating scores and the letter grade are as follows: The aggregate score on the homework assignments and class participation (maximum of 50). The best nine homework scores and the class participation score are used to compute the score for the assignments and class participation. All of the assignments and the class participation have equal weight; the worst homework score is discarded and the other nine are added to the class participation score and this sum is scaled down so that the maximum is 50. (The sum of the best nine scores can be calculated as follows: Keep track of both the sum and the minimum when you read from the file; at the end subtract the minimum score from the sum.) The aggregate score on the tests (maximum 50).All the midterm scores are equally weighted, whereas the final exam carries twice the weight of each midterm (e.g., if midterm scores are 60, 70, 80, and final is 90, aggregate test score is 39 out of 50). The total score (homeworks & participation + tests, maximum 100) A letter grade (A (2 90), B (2 80), C (270), D (260) or F (

Step by Step Solution

3.45 Rating (148 Votes )

There are 3 Steps involved in it

Step: 1

Introduction The turnover rate among fast food workers is a multifaceted aspect influenced by various factors Understanding the rate at which employee... 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

Intermediate Accounting

Authors: Donald E. Kieso, Jerry J. Weygandt, And Terry D. Warfield

13th Edition

9780470374948, 470423684, 470374942, 978-0470423684

More Books

Students also viewed these Accounting questions

Question

=+b) Would you use this model? Explain.

Answered: 1 week ago