Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started