Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 + CreditHouri 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. Language: C

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

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

a valuing of personal and psychological privacy;

Answered: 1 week ago