Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C program Write a program to store final exams results of 10 students Section X-1 for all 5 courses i.e PF, PICT, AP, CAL, ENG.
C program
Write a program to store final exams results of 10 students Section X-1 for all 5 courses i.e PF, PICT, AP, CAL, ENG. The program needs to contain the following functionalities: 1. Reads a list of each student's double-precision scores (e.g 38.25) from the keyboard and save it into a 2D array named grade. So, every row carries the marks of one student bearing the roll no = (row no.+ 1). The process of input should be terminated when a negative value has been entered. 2. Finds out the least score in each course. 3. Display roll numbers of students with the least score in each course. 4. Find out the student who ranks last in the class. (Hint: Save total marks for all students in an array and find the student with lowest marks among them) SAMPLE INPUT SAMPLE OUTPUT Sample Outputs for 2: Lowest score in PF: 40 Lowest score in ICT: 30 Lowest score in AP: 10 Lowest score in ENG: 45 Lowest score in CAL: 34 PF 76 85 60 40 90 55 60 83 90 67 1 2 3 4 5 6 7 8 9 1 IICT 68 93 50 30 85 70 40 46 93 85 2 AP 72 86 70 10 100 76 67 54 100 76 3 ENG 63 76 75 45 85 58 78 78 85 83 4 CAL 88 98 55 34 90 57 76 97 89 62 ---> Sample Outputs for 3: Students securing the lowest score in PF is Roll no. 04 Students securing the lowest score in TICT is Roll no. 04. Students securing the lowest score in AP are Roll no. 04. Students securing the lowest score in ENG are Roll no. 04. Students securing the lowest score in CAL are Roll no. 04. Sample Outputs for 4: Last rank in Section X-1 is secured by Roll no. 04 thisStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started