Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Question Write a python program that calculates the new cumulative GPA of a student after the current semester, given the following: . Current semester
Python Question
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 previousCumulativeGPA = 3.241 previousCumulativeCredits = 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 Hw01014.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 # semester. # # First, we include the inputs. current semesterGPA = 1.5 # This is the current semester GPA of the student currentsemestercredits = 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 previousCumulativecredits = 42 # This is the number of completed credit hours before the current semester # YOUR CODE HEREStep 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