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