1) The main function a. This is the only function your program should call explicitly i. In your program file, the only code not within a function should be the calling of the main() function b. This function should i. Call the other functions ii. Display the final grade to the user c. This function should take no input arguments and have no return statement 2) The getUserGrades function a. This function should store the user's grades in a list i. As the name suggests 1. The return of this function should be a list containing the grades the user entered This functi

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
1) The main function
a. This is the only function your program should call explicitly
i. In your program file, the only code not within a function should be the
calling of the main() function
b. This function should
i. Call the other functions
ii. Display the final grade to the user
c. This function should take no input arguments and have no return statement
2) The getUserGrades function
a. This function should store the user's grades in a list
i. As the name suggests
1. The return of this function should be a list containing the grades the
user entered
2. This function takes no input
Page 1 of 4
3) The calcNumAverage function
a. This function should calculate the average grade
i. As the name suggets
1. The return of this function should be the average grade the user
entered
2. The input to this function should be a list of grades
ii. Average Formula
1. Mathematically the average of a set of numbers can be expressed as:
Sum
. This is the sum of all the numbers divided by the total number
Соunt
of numbers.
4) The numToLetterGrade function
a. This function should convert from a decimal digit to a valid hexadecimal digit
b. You should have code related to this function from lab 6
i. As the name suggests
1. The return of this function should be a letter grade
2. This input to this function should be a single grade number
ii. Use the following grade breakdown:
A
100 – 93
A-
92.9 – 90
В+
89.9 – 87
В
86.9 – 83
В-
82.9 – 80
79.9 – 70
D
69.9 – 60
F
59.9 – 0
Transcribed Image Text:1) The main function a. This is the only function your program should call explicitly i. In your program file, the only code not within a function should be the calling of the main() function b. This function should i. Call the other functions ii. Display the final grade to the user c. This function should take no input arguments and have no return statement 2) The getUserGrades function a. This function should store the user's grades in a list i. As the name suggests 1. The return of this function should be a list containing the grades the user entered 2. This function takes no input Page 1 of 4 3) The calcNumAverage function a. This function should calculate the average grade i. As the name suggets 1. The return of this function should be the average grade the user entered 2. The input to this function should be a list of grades ii. Average Formula 1. Mathematically the average of a set of numbers can be expressed as: Sum . This is the sum of all the numbers divided by the total number Соunt of numbers. 4) The numToLetterGrade function a. This function should convert from a decimal digit to a valid hexadecimal digit b. You should have code related to this function from lab 6 i. As the name suggests 1. The return of this function should be a letter grade 2. This input to this function should be a single grade number ii. Use the following grade breakdown: A 100 – 93 A- 92.9 – 90 В+ 89.9 – 87 В 86.9 – 83 В- 82.9 – 80 79.9 – 70 D 69.9 – 60 F 59.9 – 0
def getUserGrades ():
inputsList
[]
%3D
while( ):
..
return inputsList
def calcNumAverage(gradesList):
gradeAverage
= 0
while( ):
..
return gradeAverage
def gradeNumToLetter(average):
return letterGrade
def main():
main()
Examples:
Below are example outputs of a successful program:
Number of classes:3
Numeric grade: 88.5
Numeric grade: 70.3
Numeric grade: 96
Your average letter grade is: B
Number of classes:2
Numeric grade: 94
Numeric grade: 86.7
Your average letter grade is: B+
Number of classes:1
Numeric grade: 64.8
Your average letter grade is: D
Transcribed Image Text:def getUserGrades (): inputsList [] %3D while( ): .. return inputsList def calcNumAverage(gradesList): gradeAverage = 0 while( ): .. return gradeAverage def gradeNumToLetter(average): return letterGrade def main(): main() Examples: Below are example outputs of a successful program: Number of classes:3 Numeric grade: 88.5 Numeric grade: 70.3 Numeric grade: 96 Your average letter grade is: B Number of classes:2 Numeric grade: 94 Numeric grade: 86.7 Your average letter grade is: B+ Number of classes:1 Numeric grade: 64.8 Your average letter grade is: D
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
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