Answered step by step
Verified Expert Solution
Link Copied!

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 5 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 5 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

Write a note on job design.

Answered: 1 week ago

Question

Compute the derivative of f(x)cos(-4/5x)

Answered: 1 week ago

Question

Discuss the process involved in selection.

Answered: 1 week ago

Question

Differentiate tan(7x+9x-2.5)

Answered: 1 week ago