Question: 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
Get step-by-step solutions from verified subject matter experts
