Question: Write in C Programing Write a program that asks three students about the grade they received in four classes each, then prints the GPA of
Write a program that asks three students about the grade they received in four classes each, then prints the GPA of each student. Assume that all the classes have the same number of credits. The grade scale is (4,3,2,1,0) which corresponds to (A,B,C,D,F), respectively. If the user enters an invalid grade, consider it as zero. Print the GPA as a floating-point value. In this program, it is known that there will be three students and each student has four classes. What's the suitable loop structure for this program? Below is a sample output Student 1 Class 1: 4 Class 2: 4 class 3: 2 Class 4:3 Student 2 Class 1: 3 Class 2: 3 class 3: 1 Class 4: 2 Student 3 Class 1: 3 Class 2: 4 Class 3: 0 Class 4:1 Student 1 GPA: 3.25 Student 2 GPA: 2.25 Student 3 GPA: 2.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
