Menu

[solved] – Question 7915

You are to write a program to compute grades for computing program. Your program
should perform the following;
1. Accept input (in marks) from users
2. Calculate final mark taking into account exam and incourse marks as follows;
a. System must prompt the user for one’s name, student id, exam and incourse
marks. [You may assume the weightage for exam and incourse is 50%
respectively]
b. Display final mark (see 3(b) for other conditions)
3. Display final grade
a. The possible grades are:
0 <= average mark < 50 – NN
50 <= average mark < 60 – PA
60 <= average mark < 70 – CR
70 <= average mark < 80 – DI
80 <= average mark <= 100 – HD
b. A student would have failed if marks obtained is less than 50 for either the exam
or incourse component in which case the final mark for the student would be the
lower of the two.
Example:
Exam Mark (%): 40
Incourse Mark (%): 60
Final Mark (%): 40

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *