a player receives a free jump man at 7000 points. Prompt the user for their score. If the score is below 7000 output how many more points are needed for a free jumpman. If it is 7000 or above inform the user of their prize. If the numb

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section8.2: Lookup Tables And The Iferror Function
Problem 6QC
icon
Related questions
Question
In donkey Kong a player receives a free jump man at 7000 points. Prompt the user for their score. If the score is below 7000 output how many more points are needed for a free jumpman. If it is 7000 or above inform the user of their prize. If the number is zero display an error message. Make a code in Java that results like test case examples. Thanks
Test Case 3
Enter your score: \n
4235 ENTER
You need 2765 more points for a 1UP
Test Case 4
Enter your score: \n
1052200 ENTER
1UP
Test Case 5
Enter your score: |\n
8034 ENTER
1UP
Test Case 6
Enter your score: \n
-234 ENTER
You got less than zero? This score is invalid.
Transcribed Image Text:Test Case 3 Enter your score: \n 4235 ENTER You need 2765 more points for a 1UP Test Case 4 Enter your score: \n 1052200 ENTER 1UP Test Case 5 Enter your score: |\n 8034 ENTER 1UP Test Case 6 Enter your score: \n -234 ENTER You got less than zero? This score is invalid.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT