0

can someone help me solve this problem in C ?

Write the code that contains the student's information (for 5 students): ID and Points (must be in the form of an array). Based on the points belonging to the student, his grade should be calculated (eg if the student has 62 points, it makes him have a grade of 7). The grade should also be calculated average for grades that are above 5 (for those who have passed the exam). Eventually they should appear students with ID who has passed the exam along with his/her grade and who has not passed the exam, how many students passed the exam in total, average grade of positive grades, and the maximum score from all the points given in the array. If any of the given points are wrong, then the program should stop showing for which student the points are wrong, thus not displaying other required information higher.

21st Jan 2023, 1:11 PM
Era
7 ответов
+ 3
What you can from the c language use for the solution?
21st Jan 2023, 1:41 PM
JaScript
JaScript - avatar
+ 1
What you have done so far share your attempt where u facing issues
21st Jan 2023, 1:38 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
i can;t send the whole code here idk why
21st Jan 2023, 5:58 PM
Era
0
Add your code in codebit than share a link
21st Jan 2023, 6:18 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
https://1drv.ms/t/s!AmiVj63L4BxVpAtMyDZBPC1-zPbj?e=swU5td
21st Jan 2023, 6:27 PM
Era
0
Era i have checked your code . You have defined arrays Id, picket ... And with values right then why u used scanf when u have already defined array so u don't need first 3 scanf you don't need them or just remove & from scanf . And check your if cases where you have written if(piket[i]=50,51,52,53,54,55,56,57,58,59) In if condition you can't assign value you have to give condition use == and such multiple values are not allowed you can write these values by array[k]
21st Jan 2023, 6:50 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
To be honest I don’t know what to do further about the code . I’m a begginer so i find it very hard . Thank you for helping me in the first place !
21st Jan 2023, 7:56 PM
Era