Question
Task #1 Who is the best! Create a program that will perform the following. It will ask the user for the first players score and
Task #1 Who is the best! Create a program that will perform the following. It will ask the user for the first players score and then ask for the second players 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 player1s score and player2s 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.
i have solution also but it is not giving correct output can you check the problem
but it is not giving correct output can you check the problem?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started