Question: Question 2 Write a program that allows user to calculate a student GPA. First ask the user, how many subjects to be included. Use a

 Question 2 Write a program that allows user to calculate a

Question 2 Write a program that allows user to calculate a student GPA. First ask the user, how many subjects to be included. Use a for loop to capture the points and credit hour for each subject (Use 2 array structure, 1 for points, and the other for credit hour). You are then required to calculate and print the GPA for the mentioned number of subjects. The formula for GPA (example of 3 subjects) is as follows: (Points1 x CreditHourl) + (Points2 x CreditHour2) + (Points2 x CreditHour2) CreditHourl + CreditHourl + CreditHourl Example output is shown below, user inputs are highlighted and BOLD. How many subjects?: 3 Points for subject 1: 3.75 Credit Hour for subject 1: 4 Points for subject 2: 4.00 Credit Hour for subject 2: 3 Points for subject 3: 3.00 Credit Hour for subject 3: 3 GPA is 3.60 Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve the problem of calculating a students GPA you can write a Python program that does the foll... View full answer

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!