in python You will be writing a program that can be used to
sum up and report lab scores. Your program must allow a user to
enter points values for the four parts of the problem solving
process (0-5 points for each step), the code (0-20 points), and 3
partner ratings (0-10) points each. It should sum the points for
each problem-solving step, the code, and the average of the three
partner ratings and print out a string reporting the student’s
information, points earned, and lab number. Each function referred
to below must be implemented and have an appropriate docstring.
Please work in order of the steps listed below.
1) Define the function called grade_lab that takes in the lab
number and student id as parameters. Have it return a string in the
form “Student: XXX earned 50 points on lab Y”. You may start by
assuming all students earn 50 points.
2) Call the function with student id 12345 and for lab 3 and
print the string it returns to the screen. Evaluate whether or not
it is correct, and whether it could be improved (e.g, with spacing
and formatting). Call again with different values and
re-evaluate.
3) Define a function for grading parts of the problem solving
process that takes the problem-solving step number (1-4) as a
parameter, and prompts the user with a detailed message to enter
the score for the giving problem-solving set (e.g., “Please enter a
score 0 - 5 earned for understanding the problem: ”). The prompt
must be specific to the step number entered.
4) In the grade_lab function, call the function for grading
parts of the problem solving process and replace the 50 point value
(referred to in step 1) with the score returned. Then, call the
function for steps 2 - 4, and print the total of all scores.
5) Define a function that prompts the user to enter a score
grading code. Be sure to know what values are expected.
6) In the grade lab function, call the function for grading
code and add its value to the total score reported. Test your code
to make sure the total score is being calculated correctly.
7) Define a function that prompts the user to enter 3 partner
rating scores (be sure to include expected values) and returns the
average of those scores.
8) In the grade lab function, call the function for getting
partner ratings and it to the total score reported. Test this
partner function with at least the following values: 10, 10, 10;
and then 0, 5, 10. Evaluate whether or not the function is working
correctly.
9) Update your grade_lab function to store names associated
with various student ids. Hard code some example id numbers and
student names. Update the string returned to include the student
name along with their id number.
10) Execute your code for two different students who received
different scores. Evaluate the values printed to screen and update
your code as needed.