subject

Write c++ program to read the grade data for all courses of a student and output the final gpa. ask the user to enter # of courses first, then ask for # of credit hours and the letter grade for each course. note that a translates to 4, b translates to 3, c translates to 2, d translates to 1, and f translates to 0 grade points. weighted gpa is computed by adding (# of grade points * # of credit hours) for all courses divided by total # of credit hours. here is a sample input & output with explanation. sample input & output explanation # of courses: 4 need to get data for 4 courses 2 a current gpa: (2 * 4) / 2.0 = 4.0 3b current gpa: (2 * 4+ 3 * 3) / 5.0 = 3.4 current gpa: (2*4+3* 3+4 * 4) / (2+3+4) = 3.6667 30 current gpa: (2*4 +3*3+4* 4 +3 * 2)/(2+3+4+3) = 3.25 gpa: 3.25 we are done!

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarly if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
You know the right answer?
Write c++ program to read the grade data for all courses of a student and output the final gpa. ask...
Questions
question
Mathematics, 13.02.2021 14:00
question
English, 13.02.2021 14:00
question
Mathematics, 13.02.2021 14:00
question
Mathematics, 13.02.2021 14:00
Questions on the website: 13722362