Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Maximum of Two Values Design a function named max that accepts two integer values as arguments and returns the value that is the greater of

Maximum of Two Values

Design a function named max that accepts two integer values as arguments and returns the value that is the greater of the two. For example, if 7 and 12 are passed as arguments to the function, the function should return 12. Use the function in a program that prompts the user to enter two integer values. The program should display the value that is the greater of the two.

need: variable lists, IPO Chart, pseudocode, Flowchart, and working Python code

2.) Test Average and Grade

Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Design the following functions in the program:

calcAverageThis function should accept five test scores as arguments and return the average of the scores.

determineGradeThis function should accept a test score as an argument and return a letter grade for the score (as a String), based on the following grading scale:

Score Letter Grade
90100 A
8089 B
7079 C
6069 D
Below 60

F

need: variable lists, IPO Chart, pseudocode, Flowchart, and working Python code

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

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions

Question

2. To compare the costs of alternative training programs.

Answered: 1 week ago

Question

1. The evaluation results can be used to change the program.

Answered: 1 week ago