Your task is to create a GPA Calculator. Start by creating a Python script called GPACalculator. This class should calculate the GPA for a student based on the grades and number of credit hours the student enters. GPA is calculated based on the average grade points per credit hour. The number of credits a student earns per course is the grade points multiplied by the credit hours of that course. The average is the sum of this product for all classes divided by the total number of credit hours. In other words, GPA equals the total of grade points times credit hours divided by total credit hours. Use the following methods to accomplish this: calculateGPA – takes the total points and the total credit hours to calculate the GPA printResult – takes a string that contains the table with the letter grade and grade point as well as the calculated GPA to print the result

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

following the grade sheet and extra credit

Please remember to read the lab grade sheet and adhere to all requirements outlined on it. We
use that to grade the labs!
Lab 8 Grade Sheet
Points
Description
Comments
Quiz completed, received in the first 15
min of lab.
Quiz
4
Algorithm presented in document format
when asked by the TA.
Algorithm
3
Lab
Correct program name:
1
GpaCalculator
Introduction displayed at the
1
beginning.
Only one decimal point used in
reporting GPA
Grades and number of credit hours are
side by side and per class
2
4
Correct results
5
Code
-2
Header - name, date, program description.
Comments - Explain your code
-2
throughout, at least 3 comments.
Spacing - no excessive blank lines, use
blank lines to separate logic.
-1
Variable Names - Give variables
-1
meaningful names; not generic ones.
Transcribed Image Text:Please remember to read the lab grade sheet and adhere to all requirements outlined on it. We use that to grade the labs! Lab 8 Grade Sheet Points Description Comments Quiz completed, received in the first 15 min of lab. Quiz 4 Algorithm presented in document format when asked by the TA. Algorithm 3 Lab Correct program name: 1 GpaCalculator Introduction displayed at the 1 beginning. Only one decimal point used in reporting GPA Grades and number of credit hours are side by side and per class 2 4 Correct results 5 Code -2 Header - name, date, program description. Comments - Explain your code -2 throughout, at least 3 comments. Spacing - no excessive blank lines, use blank lines to separate logic. -1 Variable Names - Give variables -1 meaningful names; not generic ones.
Exercise to be Graded
Your task is to create a GPA Calculator.
Start by creating a Python script called GPACalculator. This class should calculate the GPA for a
student based on the grades and number of credit hours the student enters.
GPA is calculated based on the average grade points per credit hour. The number of credits a
student earns per course is the grade points multiplied by the credit hours of that course. The
average is the sum of this product for all classes divided by the total number of credit hours. In
other words, GPA equals the total of grade points times credit hours divided by total credit
hours. Use the following methods to accomplish this:
calculateGPA – takes the total points and the total credit hours to calculate the GPA
printResult – takes a string that contains the table with the letter grade and grade point
as well as the calculated GPA to print the result
Grade Points
Letter Grade
Grade Points
A
4
в
3
2
D
1
The user should be able to enter as many letter grade/credit hour combinations as they want.
Your output should match the following:
The courses you entered are:
Grades
Hours
A
B
A
B
Resulting in a GPA of 3.6
Extra Credit:
Allow for pluses and minuses (A+, C-, etc) to be added to the score. You must make a
new table to account for this in the greeting statement. (+2 points)
Allow the user to enter a student's name and add a loop that will allow the user to enter
the grades for as many students as they want, giving a report on all averages at the end.
3.
Transcribed Image Text:Exercise to be Graded Your task is to create a GPA Calculator. Start by creating a Python script called GPACalculator. This class should calculate the GPA for a student based on the grades and number of credit hours the student enters. GPA is calculated based on the average grade points per credit hour. The number of credits a student earns per course is the grade points multiplied by the credit hours of that course. The average is the sum of this product for all classes divided by the total number of credit hours. In other words, GPA equals the total of grade points times credit hours divided by total credit hours. Use the following methods to accomplish this: calculateGPA – takes the total points and the total credit hours to calculate the GPA printResult – takes a string that contains the table with the letter grade and grade point as well as the calculated GPA to print the result Grade Points Letter Grade Grade Points A 4 в 3 2 D 1 The user should be able to enter as many letter grade/credit hour combinations as they want. Your output should match the following: The courses you entered are: Grades Hours A B A B Resulting in a GPA of 3.6 Extra Credit: Allow for pluses and minuses (A+, C-, etc) to be added to the score. You must make a new table to account for this in the greeting statement. (+2 points) Allow the user to enter a student's name and add a loop that will allow the user to enter the grades for as many students as they want, giving a report on all averages at the end. 3.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY