Question: QUESTION 1 Write a complete C++ program that reads in a list of data (Matric No. Name of student, grade for 5 subjects) from the

 QUESTION 1 Write a complete C++ program that reads in alist of data (Matric No. Name of student, grade for 5 subjects)

QUESTION 1 Write a complete C++ program that reads in a list of data (Matric No. Name of student, grade for 5 subjects) from the input file as shown below (Figure 1.1). Credit hour for the first three subjects is 3 and the other two subjects is 2. The number of students is unknown but not more than 100. In this example (Figure 1.1), there are only four students. You have to complete this input file with data at least for 8 students and cover all situations. C+ 170013 170026 170127 170113 Samerah IqbalTariq MuhammadAiman Marinachin C+ F C+ A- A C+ B C+ A C+ C+ C+ C+ Figure 1.1: input file The program is able to a. Determine the grade point as shown in the following table. grade A A- B+ B B- C+ F Grade point 4.0 3.67 3.33 3.0 2.67 2.33 0 b. Calculate total grade point total grade point = grade point x credit hour GPA = c. Calculate Grade point average (GPA) total grade point total credit hour d. Calculate average GPA of all students in this semester and list of students who get GPA 3.5 and above. Display result of all students into the file output as shown in Figure 1.2 Use array (one-dimension and two-dimension) to store the input data from file and the output data. Matriene Name Subi 170013 Samerah 3.33 170026 IqbalTariq 2.33 170127 Muhammad iman 0.00 170113 Marinachin 3.67 Average GPA of all students: 2.92 Sub2 Sub 3 Sub Subs GPA 4.00 2.33 2.33 2.33 2.95 4.00 3.00 2.33 3.67 3.07 2.33 2.33 2.33 2.33 1.79 4.00 4.00 3.67 4.00 3.87 List of Students who get GPA 3.5 and above: 1. Marinachin Figure 1.2: output file

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!