From your understanding of arrays and functions, write a C++ program to calculate one’s GPA for a semester. The program should have the following features; • The number of courses it can calculate the...

From your understanding of arrays and functions, write a C++ program to calculate one’s GPA for a semester. The program should have the following features; • The number of courses it can calculate the GPA on should be dynamic, that is, it should be able to calculate any number of courses entered by a user. • The program should ask of the user’s name and programme. This should be used to print something like a semester report at the end of the calculation to the user. • The program should ask of the individual course’s grade (e.g., A, B+…) and the grades should then be converted to its corresponding grade point for calculation. • Write and use a function for the conversion in the above statement. • The program should as well ask of the individual course’s credit hours as it will be used in the calculation. • Make sure that the program requests the individual credit hours after each grade is enter. For instance, if grade for course 1 is entered, the next request should be credit hours for course 1. • After your calculation, the program should display a semester report to the user that should include user’s name, programme of study, class for the semester (first, second upper, etc), the individual courses parallel to their respective grade, credit hours and credit points. (Hint: Similar to how your portal displays your result). ASSIGNMENT 2 (20 MARKS) 1. Write a C++ program to sort an array using insertion sort. 2. Write a C++ program to display a ticket containing the amount a passenger should pay based on the following; • The general fare from Sunyani to Accra is GHC60. • If the person is a student and less than 20 years, he or she will receive a discount of 20% • If the person is 60 years and above, 35% discount. • If two passengers are travelling as couple, 15% discount. 3. With example, explain the difference between memory overflow and underflow
Nov 21, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here