- 1
need help C program
5. A survey was conducted to study the marks of students in Physic subject. An example data set from the survey are shown in Table 1. Table 1 Student Score Ahmad 49 Ali 65 Fatimah 80 Haziq 95 Nurul 34 Mutalib 73 Aisyah 44 Write a complete program to print the following statistics. Your program must be able to print the statistics correctly even if a different data set is used. Number of students who score 50 and below. Number of students who score 80 and above. The student's name who get the highest score. The student's name who get the lowest score The average score of all students.
1 Answer
+ 2
Try it first by yourself and post your try here. So then one from community help you to complete it..
Here , C structs may help you.. read about those..
struct stdscore
{
char name[10];
int marks;
}
Thats helps you store data.
You can also use arrays here, with proper logic..
Next all , just condition checkings by loop a think..
Hope it helps..