Question: # Define a function that receives two grades and returns you, me , or no one depending on which grade is the

# Define a function that receives two grades and returns "you", "me", or "no one depending on which grade is the larger of the two
#-
# Program starts here
# Initialize more to 'y'
# Loop while more is 'y'
# Prompt the user to "Enter your grade: " and save it
# Prompt the user to "Enter my grade: " and save it
# Display "And the winner is", value returned by the function
# Prompt the user "More comparisons? and save it
Sample run of my program:
Enter your grade: 85
Enter my grade: 100
And the winner is me
More comparisons? y
Enter your grade: 95
Enter my grade: 87
And the winner is you
More comparisons? y
Enter your grade: 95
Enter my grade: 95
And the winner is no one
More comparisons? n# Define a function that receives two grades and returns "you", "me", or "no one depending on which grade is the larger of the two
#-
# Program starts here
# Initialize more to 'y'
# Loop while more is 'y'
# Prompt the user to "Enter your grade: " and save it
# Prompt the user to "Enter my grade: " and save it
# Display "And the winner is", value returned by the function
# Prompt the user "More comparisons? and save it
Sample run of my program:
Enter your grade: 85
Enter my grade: 100
And the winner is me
More comparisons? y
Enter your grade: 95
Enter my grade: 87
And the winner is you
More comparisons? y
Enter your grade: 95
Enter my grade: 95
And the winner is no one
More comparisons? n
# Define a function that receives two grades and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!