Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You only need to provide one letter grade. You need to provide the average after adding 5 numbers letter grade. For example grade 1: 90,
You only need to provide one letter grade. You need to provide the average after adding 5 numbers letter grade. For example grade 1: 90, grade 2: 92, grade 3: 88, grade 4:97, grade 5: 88 you need to add this and you get 455/5 is average:91. So provide the letter number grade for the average which is 91 and the letter grade is A. You only have to provide one letter grade and that is for the average.
Please don't forget to follow the instructions above. Please do it in Pychram.
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 informationStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started