Question: Write a program that reads Mathematics and Physics test marks of 10 (ten) student and stores it to a 2-dimensional (2-D) array named studentmark2. Then,

 Write a program that reads Mathematics and Physics test marks of

Write a program that reads Mathematics and Physics test marks of 10 (ten) student and stores it to a 2-dimensional (2-D) array named studentmark2. Then, determine the followings: i) Average marks of each subject ii) Highest mark of each subject iii) Lowest mark of each subject iv) Suppose that pass mark is 60 and above. Determine the number of passed and failed students of each subject Your array structure should be as follows: Mathematic [0] Physic [1] studentmark2[0] studentmark2[1] studentmark2[8] studentmark2[9] Your program must produce the following output: Enter Mathematic test marks: 72 64 53 81 40 90 76 39 68 84 Enter Physic test marks : 62 74 51 37 82 45 39 66 85 60 Average marks (Mathematic) : 66.70 Highest mark (Mathematic) : 90.00 Lowest mark (Mathematic) : 39.00 Number of passed students (Mathematic): Number of failed students (Mathematic): 7 3 Average marks (Physic) : 60.10 Highest mark (Physic) : 85.00 Lowest mark (Physic) : 37.00 Number of passed students (Physic): Number of failed students (Physic): 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!