Enter the number of students (maximum 20): 2 Enter scores for student #1: Exam a
ID: 3648759 • Letter: E
Question
Enter the number of students (maximum 20): 2Enter scores for student #1:
Exam average: 99.99
Lab average: 88.88
Homework average: 77.77
Enter scores for student #2:
Exam average: 66.66
Lab average: 55.55
Homework average: 44.44
---------------------------------------------
| SN | EXAM | LABS | POINTS | HW | GR |
|---------------------------------------------|
| 1 | 100.0 | 88.9 | 77.8 | 94.4 | A |
|---------------------------------------------|
| 2 | 66.7 | 55.5 | 44.4 | 61.1 | D |
---------------------------------------------
Press ENTER key to exit
Explanation / Answer
#include main() { int n,i; float exam[20],lab[20],hw[20],temp; char grade; printf("Enter the number of students (maximum 20) "); scanf("%d",&n); for(i=0;i80 && temp70 && temp60 && temp50 && tempRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.