Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

ISBN: 3540416641, 978-3540416647

More Books

Students also viewed these Databases questions

Question

Why was the survey foot definition maintained in the United States?

Answered: 1 week ago

Question

How does the decision tree algorithm decide when to stop splitting?

Answered: 1 week ago