dont use loops for it and each problem solving process needs a seperate statement within a...

80.2K

Verified Solution

Question

Programming

dont use loops for it and each problem solving process needsa seperate statement within a function. also create a range foreach of the functions to limit input to the max points for eachsection. also make a dictionary to associate names with student idand hard code some examples in there to return string with studentsname, their id number, total score, and lab number

using python You will be writing a program that can be used to sumup and report lab scores. Your program must allow a user to enterpoints values for the four parts of the problem solving process(0-5 points for each step), the code (0-20 points), and 3 partnerratings (0-10) points each. It should sum the points for eachproblem-solving step, the code, and the average of the threepartner ratings and print out a string reporting the student’sinformation, points earned, and lab number. Each function referredto 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 numberand student id as parameters. Have it return a string in the form“Student: XXX earned 50 points on lab Y”. You may start by assumingall students earn 50 points.

  2. Call the function with student id 12345 and for lab 3 and print thestring it returns to the screen. Evaluate whether or not it iscorrect, and whether it could be improved (e.g, with spacing andformatting). Call again with different values andre-evaluate.

  3. Define a function for grading parts of the problem solving processthat takes the problem-solving step number (1-4) as a parameter,and prompts the user with a detailed message to enter the score forthe giving problem-solving set (e.g., “Please enter a score 0 - 5earned for understanding the problem: ”). The prompt must bespecific to the step number entered.

  4. In the grade_lab function, call the function for grading parts ofthe problem solving process and replace the 50 point value(referred to in step 1) with the score returned. Then, call thefunction for steps 2 - 4, and print the total of allscores.

  5. Define a function that prompts the user to enter a score gradingcode. Be sure to know what values are expected.

  6. In the grade lab function, call the function for grading code andadd its value to the total score reported. Test your code to makesure the total score is being calculated correctly.

  7. Define a function that prompts the user to enter 3 partner ratingscores (be sure to include expected values) and returns the averageof those scores.

  8. In the grade lab function, call the function for getting partnerratings and it to the total score reported. Test this partnerfunction with at least the following values: 10, 10, 10; and then0, 5, 10. Evaluate whether or not the function is workingcorrectly.

  9. Update your grade_lab function to store names associated withvarious student ids. Hard code some example id numbers and studentnames. Update the string returned to include the student name alongwith their id number.  

  10. Execute your code for two different students who received differentscores. Evaluate the values printed to screen and update your codeas needed.

Answer & Explanation Solved by verified expert
4.4 Ratings (714 Votes)
You mentioned to not use for loops so Ive done all of the working    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students