Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help writing a high low dice game program in java. The program should simulate the throw of 5 dice for the user along
I need help writing a high low dice game program in java. The program should simulate the throw of dice for the user along with the sum of the dice. The user has to decide whether the sum of their roll will be higher or lower than the sum of the roll of the computer. If higher then enter H If lower then enter L The program will simulate the throw of dice along with the sum of the dice for the computer. If the user call was correct then it should say either you called higher. Your guess is correct or it should say you called lower. Your guess is correct. If the users guess was wrong it should say you guessed incorrectly. Your roll was lower or you guessed incorrectly. Your guess was lower. The program should then ask if the user wants to continue playing or end the game. If the user chooses to end the game it should say game over goodbye.
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