Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It is C++ question. 1. 13 points) Write a program to: a. Prompt the user for the number of courses: b. Prompt the user to

image text in transcribed

It is C++ question.

1. 13 points) Write a program to: a. Prompt the user for the number of courses: b. Prompt the user to enter the grade for each course. User should be given the choice to enter either letter grades or grade points. c. Prompt the user to enter hours for each course. d. Using the functions described below, calculate grade point average (gpa). Use the following formula for calculating spa: Gpa = ((gradePoints hours))/(Zhours) In the formula above, gradePoints refers to grade points received in a course and hours refers to hours for that course. For example, for PROG1955, the hours would equal to 5 and grade points will depend on the grade received. For this program, use the following table to find grade points corresponding to a received grade: Grade Points Grade A B C D F 3.0 2.0 1.0 For example, if you wanted to find gpa for two courses in which grades were 'A' and 'B' respectively and hours were 5 and 4 respectively, the gpa would be (4.0*5)+(3.0*4))/(5+4). Your program must use functions with the following prototypes: float Gpa(const char grades),const int hours[], int arrLength); float Gpalconst float gradePoints[], const int hours[], int arrLength); float GradePoints(char grade)

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

More Books

Students also viewed these Databases questions

Question

1. Outline the listening process and styles of listening

Answered: 1 week ago

Question

4. Explain key barriers to competent intercultural communication

Answered: 1 week ago