Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

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

Step: 3

blur-text-image

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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

c. What groups were least represented? Why do you think this is so?

Answered: 1 week ago

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago