Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python code Q1: (Function) Write a program that request the numeric grades on a midterm and a final exam and then uses a

please use python codeimage text in transcribed

Q1: (Function) Write a program that request the numeric grades on a midterm and a final exam and then uses a function named semesterGrade to assign a semester grade (A, B, C, D, or F). The final exam should count twice as much as the mid-term exam, the semester average should be rounded up to the nearest whole number, and the semester grade should be assigned by the following criteria: 90-100 (A), 80-89 (B), ... Possible outcome can be as in the below figure. The function semesterGrade should call a function you write with name ceil that rounds noninteger numbers up to the next integer. Enter grade on midterm exam: 88 Enter grade on final exam: 91 Semester grade: A Fig: Possible outcome

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

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

=+ Who do you think is right? Why?

Answered: 1 week ago