Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Estimated time to complete this question approx 25-30 minutes ABC Coaching Center wants to store HSC-II board exam results of its 10 students for all

image text in transcribed

Estimated time to complete this question approx 25-30 minutes ABC Coaching Center wants to store HSC-II board exam results of its 10 students for all 5 courses i.e Maths, Physics, Chemistry, Urdu and English. 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 Marks. 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 highest score in each course. 3. Display roll numbers of students with the highest score in each course. 4. Find out the student who ranks 1st in the class. (Hint: Save total marks for all students in an array and find the student with highest marks among them) SAMPLE INPUT SAMPLE OUTPUT Sample Outputs for 2: Highest score in Maths: 94 Highest score in Physics: 94 Highest score in Chemistry: 94 Highest score in English: 95 Highest score in Urdu: 94 0 1 2 3 0 1 Maths Physics 78 59 82 94 94 94 71 82 90 69 71 22 82 91 89 90 93 51 69 2 Chern 92 91 21 88 94 68 86 7 80 77 3 English 90 94 65 95 83 20 92 78 74 4 5 6 7 Urdu 55 73 91 71 75 22 65 74 83 94 Sample Outputs for 3: Students securing the highest score in Maths are Roll no. 03 & 10. Students securing the highest score in Physics are Roll no. 02 & 03. Students securing the highest score in Chemistry are Roll no. 05. Students securing the highest score in English are Roll no. 04. Students securing the highest score in Urdu are Roll no. 10. 9 Sample Outputs for 4: First position in Section X-1 is secured by Roll no. 02 Parta) Provide initialization of provided input 2D array [5 marks] Your program should also take a 2D array as input from the user Part b) Submit executable program code with proper indentation and comments (using C Language) Each part contains 5 marks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions