CS
1401 Introduction to Computer Science
Fall 2013, Lab 4
Assignment. This program is a modification of the program that you did for
Labs 2 and 3. The main additions to Lab 3 are that, in addition to computing and printing the final
grade, the program should also
- print the letter grade computed according to the syllabus, i.e.:
- A if the final grade is 90.0 or above;
- B if the final grade is 80.0 or above (and smaller than 90.0);
- C if the final grade is 70.0 or above (and smaller than 80.0);
- D if the final grade is 60.0 or above (and smaller than 70.0);
- F if the final grade is below 60.0;
- depending on the letter grade, your program should also
print one of the following messages:
- if the grade is A, the program should print "Congratulation, (name goes here), on your excellent work!";
- if the grade is B, the program should print "Congratulation, (name goes here), on your good work!";
- if the grade is C, the program should print "Congratulation, (name goes here), you passed the class!";
- if the grade is D or F, the program should print "Sorry, you will have to re-take this class.".
Example. In the example from Lab 2, your program should then print the
following text:
Semester: Fall 2013
Class: CS 1401 Introduction to Computer Science
Student name: Luc Kay-Vladik
Grades for:
lab assignments (26%) 90 23.4
lab attendance (10%) 100 10.0
research assignments (3%) 50 1.5
quizzes (10%) 86 8.6
exams (36%) 80 28.8
final exam (15%) 81 12.1
Overall 84.4
Extra credit 2.5
Final grade for the class: 86.9
Letter grade: B
Congratulation, Luc Kay-Vladik, on your good work!
When it is due. The program is due at the beginning of the
first lab section on the week of September 30, i.e.:
- on
Monday September 30 for those who attend Monday-Wednesday labs, and
- on Tuesday October 1 for those who attend Tuesday-Thursday
labs.