RU beehive logo ITEC dept promo banner
ITEC 320
2018fall
nokie
ibarland

records in records
itec320 hw05 (missing_scores)

Due: 2018-Oct-31 🎃 (Wed)29 (Mon) 15:00, D2L and hardcopy

Updates: ignoring formatting and minor phrasing changes

Write a program that reads student scores from standard input and prints certain specified information based on those scores. The input file will begin with four lines that give the number and weight for four types of grades: programs, quizzes, tests, and final exam, respectively. After these four initial lines, there will be five lines of data per student:

In the following example input file, there are two programs worth a total of 40%, four quizzes are worth a total of 10%, two tests are worth a total of 30%, and the single final exam is worth 20%.

Sample Input to be read from standard input

 2 40
4 10
2 30
1 20
Bob
40
40 40 40 40
40 40
40
Adam
100 100
90 90 90 90
80 80
70
Bill
50 50
50 50 50 50
50 50
50
Jill
100 50
40
60
90

Corresponding Sample Output

Name: Adam Overall Average: 87.0 Letter Grade: B Category Weight Average Points Grades ... Programs 40 100.0 40.0 100 100 Quizzes 10 90.0 9.0 90 90 90 90 Tests 30 80.0 24.0 80 80 Final Exam 20 70.0 14.0 70 Name: Jill Overall Average: 71.5 Letter Grade: C Category Weight Average Points Grades ... Programs 40 75.0 30.0 100 50 Quizzes 10 10.0 1.0 40 0' 0' 0' Tests 30 75.0 22.5 60 90' Final Exam 20 90.0 18.0 90 Name: Bob Overall Average: 32.0 Letter Grade: F Category Weight Average Points Grades ... Programs 40 20.0 8.0 40 0' Quizzes 10 40.0 4.0 40 40 40 40 Tests 30 40.0 12.0 40 40 Final Exam 20 40.0 8.0 40 Name: Bill Overall Average: 50.0 Letter Grade: F Category Weight Average Points Grades ... Programs 40 50.0 20.0 50 50 Quizzes 10 50.0 5.0 50 50 50 50 Tests 30 50.0 15.0 50 50 Final Exam 20 50.0 10.0 50

Data:

Input:

Output:

Other points:

Hints

Challenge/extra credit

Style:

In coming up with your Ada solution to the following problem, please follow my style guide. In particular, please note the use of consistent indentation, named constants, and descriptive constant and variable names. Please remember that the first thing in any program file should be a comment that gives a brief overview of what the file contains (and should do). Also remember to keep your lines less than 80 characters long. Not only does this mean that printouts won't run off the side of the page, but it also makes your programs look neater on an 80 column wide xterm window (a popular size). If you are unsure of an element of programming style, please ask, as I would be more than happy to show you what I want.


logo for creative commons by-attribution license
This page licensed CC-BY 4.0 Ian Barland
Page last generated
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.