
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
following the grade sheet and extra credit

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.

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

Knowledge Booster
Similar questions
- the employee table have the following . ask user what is the employee_id and how much employee wants to contribute 2 substitutions variable from end user &emp_id &contribution_amount If employee salary is in between $1000-$3999 And if employee's contribution amount is less than $100 then company match $100 if employee's contribution amount is greater than 100 but less than $200 then company match $75 if employee's contribution amount is greater than $200 then company match $50 $4000-$6999 And if employee's contribution amount is less than $100 then company match $150 if employee's contribution amount is greater than 100 but less than $200 then company match $100 if employee's contribution amount is greater than $200 then company match $75 $7000-$12000And if employee's contribution amount is less than $100 then company match $200 if employee's contribution amount is greater than…arrow_forwardThe incomplete box plot and table show some information about some marks. Use the information in the table to complete the box plot. Use the information in the box plot to complete the table.arrow_forwardList the item ID, description, and category for each pair of items that are in the same category. (For example, one such pair would be item FS42 and item PF19, because the category for both items is FSH.) Order the output by category. From MT SQL 10th Editionarrow_forward
- Formula to calculare the total sales amount of the customer name HORSHOE INCORPORATED. Note: This excel worksheet goes up to row 1699! Thanks.arrow_forwardsql question Write an UPDATE statement that modifies the Customers table. Change the password column to “reset” for every customer in the table.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

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 Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

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
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY