Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python python python python python python python python python python python python python You need to add functions read_number and print_report .
python python python python python python python python python python python python python
You need to add functions "read_number" and "print_report". like below:
the original code below
1 def print_score(name, value): # ... 2. 3 4. def calculate_grade (project, exam): 5 # ... 6 7 # ADD MISSING FUNCTIONS 8. 9 10 11 def main(): project_score = read_number('Enter project score:') exam_score = read_number('Enter exam score:') grade = calculate_grade (project_score, exam_score) print_report(project_score, exam_score, grade) 12 13 14 9. 15 main() def print_score(name, value): print(name, '=' * (value//5)) 1 2 3 4 5 6 7 8 def calculate_grade (project, exam): total_score = project + exam if total_score >= 60 and project >= 25 and exam >= 25: return 'A' elif (total_score >= 50) and (project >= 25 or exam >= 25): return 'B elif total_score >= 40: return 'C' else: return 'D' 9 10 11 12 13 14 15 16 17 def main(): project_score = int(input('Enter project score:')) exam_score = int(input('Enter exam score:')) 18 19 total_score = project_score + exam_score print('Total:', total_score) 20 grade = calculate_grade (project_score, exam_score) 21 22 23 24 25 26 27 28 29 print_score('Project :', project_score) print_score('Exam :', exam_score) print_score('Total :', total_score) print('Grade :', grade) main()Step 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