[Solved]-Python 37 Overall Course Grade Calculated Follows Lab Assignments 10 Homework Quizzes 15 P Q37244138
python 3.7
Your overall course grade will be calculated as follows:
Lab Assignments10%Homework Quizzes15%Programming Assignments30%Midterm Exam20%Final Exam25%
create a program that calculates the average score you needacross the midterm and the final exam to achieve a certain overallgrade in the course. program runs, it will ask you for thefollowing four pieces of data via user input: current grade inhomework quizzes, current grade in lab assignments, current gradein programming assignments, and your target course grade. It willthen calculate the score you need to earn on the midterm and finalexams (assume you get the same score across bothexams) to achieve the target course grade based on thevalues you provide. Finally, it will output this information.
Your user interface should include the following:
- Input – the program should ask for:
- Current grade (out of 100) on homework quizzes
- Current grade (out of 100) on lab assignments
- Current grade (out of 100) on programming assignments
- Target grade (out of 100) for the course
- Output – the program should display:
- Your current partial grade including only homework quizzes, labassignments, and programming assignments (note that the highestpossible grade with just these three categories is 55 out of100)
- The score (out of 100) you need to earn as an average acrossboth exams to achieve your target course grade
Your code should have (at least) three functions, andshould be organized as follows:
- A value-returning function namedcalculate_current_grade that:
- has three parameters:
- hw_score: score on homework assignments out of100 (note that is is received from user input in the mainfunction)
- lab_score: score on lab assignments out of 100(note that is is received from user input in the mainfunction)
- pa_score: score on programming assignments outof 100 (note that is is received from user input in the mainfunction)
- calculates and returns the current partial raw scoregrade using just these three categories (where the highest possiblegrade is 55)
- has three parameters:
- A value-returning function namedcalculate_exam_score that:
- has two parameters:
- current_grade: the current partial grade outof 55 (note that this is returned from the function call tocalculate_current_grade located in the main function)
- target_grade: the target grade for the courseout of 100 (note that is is received from user input in the mainfunction)
- calculates and returns the single average score youneed to earn across both exams to achieve the target coursegrade
- has two parameters:
- A main function which controls the flow of theprogram including:
- Input (see user interface section above for details)
- Process:
- Calls calculate_current_grade with the values inputtedfrom the user as the arguments. Stores the result of thefunction call into a variable.
- Calls calculate_exam_score with the value stored fromthe calculate_current_gradefunction call and user input asarguments. Stores the result of the function call into avariable.
Expert Answer
Answer to python 3.7 Your overall course grade will be calculated as follows: Lab Assignments 10% Homework Quizzes 15% Programming… . . .
OR

