Question: The programming language is PYTHON. a) The GPA may have a large number of places after the decimal point, and might even technically be wrong
The programming language is PYTHON.

a) The GPA may have a large number of places after the decimal point, and might even technically be wrong by a minuscule amount. It could show (I'm not saying it will, I am saying it could) 3.49999999989 when the GPA should be 3.5. Why could this occur and why is it not an issue we should worry about right now?
b) Before calculating and/or displaying the GPA you should (must) have an if statement before the statement printing the average. Why?
c) Did you have an else statement in conjunction with the if statement? There is no correct answer on whether or not to have an else statement, but there should be a reason for why you did or did not have one. Why did you choose to have an else or choose to not use it?
THANK YOU in advance!
Write a program that will determine your GPA for the semester. Well, sort of. The program will ask for a series of classes. For each class, ask for the name of the class, the number of credits and the letter grade expected. The letter grade will be entered as an upper case letter. To determine your GPA you need to determine the number of honor points for each class. You receive 4 points for an A, 3 for a B,2 for a C, 1 for a D, and 0 for an F. No need to worry about any grade other than those 5. For example, a 4 credit A and a 3 credit B will earn you a GPA of 3.5714.. (4 * 4+3* 3). For another example, A 3 credit A and a 4 credit B will earn you a GPA of 3.4285... (3 * 4+ 4* 3) To simply the process, start the program by asking the user how many classes they took that semester. Then ask for the class name (we won't need it in the calculations, but ask anyway), the number of credits and the letter grade. Once the user is done entering the information for the classes, display the GPA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
