Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 14 (36 points) Write a python program that calculates the new cumulative GPA of a student after the current semester, given the following: Current
Question 14 (36 points) Write a python program that calculates the new cumulative GPA of a student after the current semester, given the following: Current semester GPA and credit hours - Previous cumulative GPA and completed credit hours The next cell contains the first part of the program, which contains in the beginning the given inputs. currentSemesterGPA = 1.5 current SemesterCredits = 15 previous CumulativeGPA = 3.241 previous CumulativeCredits = 42 You need to complete it so that the program output should like this: Your previous GPA = 3.241 Your new GPA = 2.7828421052631582 Note that your program should work if we change the values of the input. In [1]: #%%writefile HWO1Q14.py ## Uncomment the above Line after you finish your code, in order to generate the Python submission file. ## # This program calculates the new GPA from the old GPA, current semester GPA, hours completed, hours taken in the current # semesten. # # First, we include the inputs. current SemesterGPA = 1.5 # This is the current semester GPA of the student current SemesterCredits = 15 # This is the number of the current semester credit hours previousCumulativeGPA = 3.241 # This is the commulative GPA of the student before the current semester previous CumulativeCredits = 42 # This is the number of completed credit hours before the current semester # YOUR CODE HERE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started