3.7 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: (a) Average marks...

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

Extracted text: 3.7 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: (a) Average marks of each subject (b) Highest mark of each subject (c) Lowest mark of each subject (d) 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 Physic (0] (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 (Mathematic) : 90.00 (Mathematic) : 39.00 Number of passed students (Mathematic): 7 Number of failed students (Mathematic): 3 Highest mark Lowest mark Average marks (Physic) : 60.10 (Physic) : 85.00 (Physic) : 37.00 Number of passed students (Physic) : Number of failed students (Physic) : Highest mark Lowest mark 4

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here