Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please code in Pychram and of course in Python Please. Please don't forget to follow all the directions. Write a program in PyCharm that can

image text in transcribed

Please code in Pychram and of course in Python Please. Please don't forget to follow all the directions.

Write a program in PyCharm that can manage grades. First, create a project named "HW1"; Second, create a module named "Grade" . In this module, you need to define two functions: 1) calc_average: this function receives a list of scores, then calculates the average of scores in this function and return the average. 2) converter : this function receives a score, verifies it is a valid grade (0100) first, and then coverts the score into a letter grade based on the criteria in the following table and returns the letter grade. Third, create another module named "Tester". This module will import the Grade module. Tester will test the functions defined in Grade module. To test the functions, it will ask users dynamically enter 5 grades and then pass the grades to the Grade.calc_average(), then call Grade. converter() to get the letter grade and display it on screen. When finish one-round testing, the Tester allows users to continue to test more grades. Attach your testing runs data to the Tester module and save the data. In you submission, you need upload the source code for the two Tester.py and Grade.py modules to Canvas. Also a screenshot of the project archticure in PyCharm is required. Note: Following the template of program to add documenation information

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

More Books

Students also viewed these Databases questions

Question

What is the difference between a finance and an operating lease?

Answered: 1 week ago

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is the relationship between humans and nature?

Answered: 1 week ago