Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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