Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C + + program that takes as inputs from a teacher, the names of her / his students along with the grade of

Write a C++ program that takes as inputs from a teacher, the names of her/his students along with the grade of each student in an exam. Define a struct with two fields: Name and Grade. In your program, the main function creates an array of this struct to store the students' data. All grades are integers that have to be in the range from 0 to 100(inclusive). Assume no two grades have the same value and there are at least five students in the class. At the beginning, you will need to ask the teacher for the size of the class (the number of students). The program will display (as its outputs) the following as shown in Figure Q.4:
The average of the students' grades.
The name and grade of the students
Each one of the above outputs must be implemented in a separate function where the array is passed to these functions as a parameter
\table[[\table[[Enter no of students],[Enter student name],[Enter student grade],[Enter student name],[Enter student grade],[Enter student name],[Enter student grade],[Enter student name],[Enter student grade],[Enter student name],[Enter student grade],[Name],[Mark],[Jack],[John],[Tailor],[Hanna],[Average],[Maximum grade is obtained by],[Minimum arade is obtained bv]],\table[[:,5],[:,Hanna],[:,20],[:,Jack],[:,60],[:,Tailor],[:,30],[:,Mark],[:,90],[:,John],[:,55],[,Grade],[:,90],[:,60],[vdots,55],[:,30],[:,20],[:,51],[Mark,],[Hanna,]]]]
Figure Q.4
image text in transcribed

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

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions

Question

What are the challenges associated with tunneling in urban areas?

Answered: 1 week ago

Question

What are the main differences between rigid and flexible pavements?

Answered: 1 week ago

Question

What is the purpose of a retaining wall, and how is it designed?

Answered: 1 week ago

Question

How do you determine the load-bearing capacity of a soil?

Answered: 1 week ago

Question

what is Edward Lemieux effect / Anomeric effect ?

Answered: 1 week ago

Question

How is workforce planning linked to strategic planning?

Answered: 1 week ago