Question: Make a program with C language for a classroom where each student has the same four classes. That program should take in each student's registration

Make a program with C language for a classroom where each student has the same four classes. That program should take in each student's registration number, student name, and the four subjects' score per student (each subject has two scores adding up to 100%, one score out of 40 and one score out of 60) The program should calculate the overall score for each subject per student, the overall score for that student in all four classes, overall GPA for that student. This should be done for each student in the class. The program also calculates the average GPA for all students in each subject and the average GPA for the entire class in all combined subjects.

Input: Registration number Student name Four subjects' scores (each subject inputs two scores; 1 out of 60 and 1 out of 40)

This is done for every student in the class.

Output look: ( Registration number: xxxxxxx Student name: xxxxxx Subject one: xxxxx (name and score) Subject two: xxxxx (name and score) Subject three: xxxxx (name and score) Subject four xxxxx (name and score) The overall score for student: xxxx GPA: xxxx ) for each student Class average GPA per subject Class overall average GPA

In addition, validate that max grades are 40 and 60 for each subject

You need to print the results in a table format with one header row, and all the data are below.

The header row is Serial, reg no, name subj1, subj2 subj3, sugj4, GPA

3 : 123456789: Mohamed: 100: 90: 90: 70: 87.5.

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!