Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

What is the preferred personality?

Answered: 1 week ago