Question: A student's grade for a programming subject needs to be determined from the student's total mark. The total mark is the summation of coursework mark

 A student's grade for a programming subject needs to be determined

A student's grade for a programming subject needs to be determined from the student's total mark. The total mark is the summation of coursework mark and the final examination mark. Grade is determined based on Table 1: Table 1 : Grade Decision Based on Total Mark (a) Write a pseudo code for the program to determine the student's grade based on Figure Q6 and Table 1. (10 marks) (b) Write a code segment for each of the following functions: (i) Function inputsum () that will ask user to enter the coursework mark and final examination mark. The function will calculate the total mark which is the summation of coursework mark and final examination mark. The function will return the value of total mark to function caller. ( 8 marks) (ii) Function Grade () receive the total mark value from function caller. The function Grade () will return the grade value. ( 9 marks) (iii) Function display () receive the total mark and grade value from function caller. The function will display the total mark and grade as output

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!