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:
Enter my grade:
And the winner is me
More comparisons? y
Enter your grade:
Enter my grade:
And the winner is you
More comparisons? y
Enter your grade:
Enter my grade:
And the winner is no one
More comparisons? # 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:
Enter my grade:
And the winner is me
More comparisons? y
Enter your grade:
Enter my grade:
And the winner is you
More comparisons? y
Enter your grade:
Enter my grade:
And the winner is no one
More comparisons?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
