Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON NEED HELP!!! Ebenezer is an undergraduate computer science student who just finished taking his first course. The course consisted of three major assignments and
PYTHON NEED HELP!!!
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) and weight (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_grade a3_grade) assignment-weighted-average = 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 e 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-auerage 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 100 and valid grades between O and 100. See the sample run on the next pageStep 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