Question: C Programming: (Create 4 functions including main.) 1. 1st function will ask the user to enter grades. Global variables can only be used for grade
C Programming:
(Create 4 functions including main.)
1. 1st function will ask the user to enter grades. Global variables can only be used for grade counters but you must pass, to the main function, the total number of grades entered (total grades entered cannot be global variable.)
2. 2nd function will Calculate GPA. You must pass the average back to the main.
3. 3rd function will print output. You must pass, to this function, the average.
4. Your main function should only have function calls and variables. Do not call a function from another function.
A=4.0, B=3.0, C=2.0, D=1.0, F=0
//Sample output (should be same as shown below)
Enter a letter grade (press q to quit): A
Enter a letter grade (press q to quit): a
Enter a letter grade (press q to quit): b
Enter a letter grade (press q to quit): B
Enter a letter grade (press q to quit): d
Enter a letter grade (press q to quit): D
Enter a letter grade (press q to quit): c
Enter a letter grade (press q to quit): C
Enter a letter grade (press q to quit): f
Enter a letter grade (press q to quit): F
Enter a letter grade (press q to quit): q
There are 2 A's, 2 B's, 2 C's, 2 D's, and 2 F's
The class average is 2.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
