Question: Create a C program to calculate the degree classification for users at an institute in certain country. The program should meet the following requirements: (a)

Create a C program to calculate the degree classification for users at an
institute in certain country. The program should meet the following
requirements:
(a) Display a welcome message on the computer screen (2 marks)
(b) The number of modules used for the degree classification
calculation is 10 in total. Read each module mark ( x ) one by one,
calculate the average mark (x/10 ) for the set of modules and print
it on the screen. (9 marks)
(c) If the average mark is 70% or greater, display a message on the
screen: Congratulations, You got a first class degree!
If the average mark is 50% or greater but less than 70%, display a
message on the screen: Congratulations, You got a second class
degree!
If the average mark is 40% or greater but less than 50%, display a
message on the screen: Congratulations, You got a third class
degree!
If the average mark is below 40%, display a message on the screen:
Sorry you havent got a degree (9 marks)
 Create a C program to calculate the degree classification for users

Create a C program to calculate the degree classification for users at an institute in certain country. The program should meet the following requirements: (a) Display a welcome message on the computer screen (2 marks) (b) The number of modules used for the degree classification calculation is 10 in total. Read each module mark ( x ) one by one, calculate the average mark (Ex/10 ) for the set of modules and print it on the screen. (9 marks) (c) If the average mark is 70% or greater, display a message on the screen: "Congratulations, You got a first class degree!" If the average mark is 50% or greater but less than 70%, display a message on the screen: "Congratulations, You got a second class degree!" If the average mark is 40% or greater but less than 50%, display a message on the screen: "Congratulations, You got a third class degree!" If the average mark is below 40%, display a message on the screen: "Sorry... you haven't got a degree..." (9 marks)

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!