Question: Student grade calculator Write a C program that calculates and displays the final grades for a student based on their scores in different subjects. The

Student grade calculator
Write a C program that calculates and displays the final grades for a student based on their scores in different subjects. The program should allow the user to input scores for multiple subjects and then
calculate the average grade ansd overall grade for the student.
Requirements:
The program should start by asking the user for their name.
Then, it should ask the user how many subjects they want to calculate grades for. For each subject, the program should prompt the user to enter the subject name and the score (as a percentage).
Calculate the average grade based on the scores and display it.
Determine and display the overall grade based on the following grading scale:
5:90-100
4: 80-89
3:70-79
2:60-69
1: 50-59
0: Below 50
The program must also write the same report to a file
Student: John Deere
------------------------------------------
Subject Score Grade
------------------------------------------
C Programming 85%4
Python 92%5
Computer Architecture 68%2
Average Grade: 3.67
------------------------------------------
Welcome to the Student Grade Calculator!
Please enter your name: John Deere
How many subjects do you want to calculate grades for? 3
Enter subject 1 name: C Programming
Enter your score for C Programming (0-100):85
Enter subject 2 name: Python
Enter your score for Python (0-100):92
Enter subject 3 name: Computer Architecture
Enter your score for Computer Architecture (0-100): 68
Student: John Deere
------------------------------------------
Subject Score Grade
------------------------------------------
C Programming 85%4
Python 92%5
Computer Architecture 68%2
Average Grade: 3.67
------------------------------------------
If the users enter the scores are less than 0 and more than 100 the output will show the percentage is the same as the score for example -5%,123% and the score will be 0. If the name of the subject has more than one word the program also need to notice and show the name exactly the same. In the output the score and grade line need to be in line from up side down.
Student grade calculator Write a C program that

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 Programming Questions!