Question: Python 3.6, At a loss on this one. Posted this a couple min ago and it was blank, couldnt edit it. This hopefully works. Question

Python 3.6, At a loss on this one. Posted this a couple min ago and it was blank, couldnt edit it. This hopefully works.

Python 3.6, At a loss on this one. Posted this a couple

min ago and it was blank, couldnt edit it. This hopefully works.

Question 5 (13 points): Purpose: Solve a problem by writing multiple functions that perform different subtasks, and combining their use to solve a larger problem. Also to practice documenting functions Degree of Difficulty: Moderate Ebenezer is an undergraduate computer science student who just finished taking his first course. The course consisted of three major assignments and one final project. He has received a complete list of grades from his instructor and has access to the grading scheme from the course syllabus. He is looking for a tool to help him calculate his final grade Your task is to write a Python program that calculates and displays Ebenezer's final grade using weighted averages. To accomplish this, you will need to write three Python functions: calc_project, calc_assignments and calc final The calc_project function should have parameters grade (percentage obtained on the project) andweight (as a decimal value). It should calculate a weighted project grade project,Weighted-average project-grade project-weight The calc_assignments function should have parameters a1_grade, a2_grade, a3_grade (percentages ob- tained on each assignment) and weight (the decimal value weight of all three assignments combined). It should calculate a weighted grade of all three assignments combined: (weight)(al-grade+a2-grude+a.grade) assignment-weighted-average = 3 The calc_final function determines Ebenezer's grade as a percentage. It should call calc_project and calc_assignments and use their return values to compute the final grade . return the computed grade The parameters of the calc_final function should be chosen so that they provide the necessary informa tion required to call the calc_project and calc_assignments functions. The final grade is final_grade -project_weighted_average + assignment_weighted_average Write code to ask the user for all necessary inputs, then display the calculated final grade to the console Remember to write appropriate docstrings for each function which states their purpose, parameter(s), and return value(s) To demonstrate your program is working correctly, first prepare and solve (by hand) three different sce- narios. Once you have the scenarios designed and the right answers calculated, run your program three times, once for each scenario where you type in the values you chose. Copy the console output from each of your three demonstration examples into a text file and hand in that text file (see 'What to Hand In below) You may assume that the user supplies valid input from the console. That is, the user is assumed to enter valid, floating-point weights which add up to exactly 1.00 and valid grades between O and 100. See the sample run on the next page

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!