Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 HERE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

Question What happens to my plan if I die?

Answered: 1 week ago

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago