Question: Need help trying to code this! 4. Write a Python program to implement the following function: report_card() This function asks the user to enter the
Need help trying to code this!
4. Write a Python program to implement the following function: report_card()
This function asks the user to enter the names and the grades of the four courses that they have taken last quarter. Then it prints out the list of courses and grades. Finally, it prints out the user's GPA. An example of inputs and outputs is shown below:
What was the name of your first class? CPSC1220 What was your grade? 96 What was the name of your second class? ACCT2300 What was your grade? 92 What was the name of your third class? BIOL1010 What was your grade? 97 What was the name of your fourth class? CMME2000 What was your grade? 84 ... REPORT CARD:
================== CPSC1220 96
ACCT2300 92
BIOL1010 97
CMME2000 84
==================
GPA out of 100: 92.25 GPA out of 4: 3.69
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
