Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

the original code below

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

4. Evaluation is ongoing and used to improve the system.

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago