Question: Task #1 - Who is the best! Create a program that will perform the following. It will ask the user for the first player's score

Task #1 - Who is the best!

Create a program that will perform the following. It will ask the user for the first player's score and then ask for the second player's score. It will then use this information to display what player had the highest score and what the difference between the two scores were. You code must include the following:

Build a function named scoreDifference() that will take two parameters player1's score and player2's score.

The function will then use the min and/or max function be sure that it is subtracting the higher value from the lower value.

The difference will then be returned.

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 Databases Questions!