Question: You are to create a C++ program for a school where the Teacher can use it to key in students result and the students can

You are to create a C++ program for a school where the Teacher can use it to key in students result and the students can use it to check their result. Your program must contain function, looping and array. The program has features as follow.

1) Start of the program, Ask user to choose

(a) are you a teacher

(b) are you a student

(c) exit

2) if user select (a) are you a teacher, prompt user to enter how many students are there in a class, this will determine the array size

3) then prompt user to enter student's matric number and marks for each subject ( math, physics, english, chemistry ) for all students in the class and store all data in an array.

example:

Please enter number of students : 10

Student 1 : matric number : 01234

Student 1 marks : math : 40

physics : 60

english : 80

chemistry : 70

4) Redirect user to step 1 after user has entered all names and results.

5) If user select (b) are you a student, prompt user to enter student's matric number and proceed to show result for each subject, their respective grades, gpa for each subject, student's cgpa and whether the student pass or fail..

6) Show output as :

Student's matric number : 01234

result :

Math : 40 , Grade : D , GPA : 1

Physics : 60 , Grade : B- , GPA : 2.7

English : 80 , Grade : A , GPA : 4

Chemistry : 70 , Grade : A- , GPA : 3.7

CGPA : 2.85 , Congratulation you passed !

7) Ask user if they want to return to step 1 or exit program.

Remarks : for grade selection, use result below

A 80-100 4
A- 75-79 3.7
B+ 70-74 3.3
B 65-69 3
B- 60-64 2.7
C+ 55-59 2.3
C 50-54 2
C- 47-49 1.7
D+ 44-46 1.3
D 40-43 1
E 0-39 0

For CGPA use : total GPA/4

CGPA > 2 = pass

CGPA < 2 fail

PLEASE USE C++ PROGRAM AND USE SELECTION , LOOPS , FUNCTIONS ARRAY

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!