Chat with us, powered by LiveChat Java CodeA Game of 21Write a program that uses the Die class that - Writeedu

Java CodeA Game of 21Write a program that uses the Die class that

Java CodeA Game of 21Write a program that uses the Die class that was presented in Chapter 4 to write a programthat lets the user play against the computer in a variation of the popular blackjack cardgame. In this variation of the game, two six-sided dice are used instead of cards. The diceare rolled, and the player tries to beat the computer’s hidden total without going over 21.Here are some suggestions for the game’s design:● Each round of the game is performed as an iteration of a loop that repeats as long asthe player agrees to roll the dice, and the player’s total does not exceed 21.● At the beginning of each round, the program will ask the user whether he or she wantsto roll the dice to accumulate points.● During each round, the program simulates the rolling of two six-sided dice. It rollsthe dice first for the computer, and then it asks the user if he or she wants to roll. (Usethe Die class that was demonstrated in Chapter 4 to simulate the dice).● The loop keeps a running total of both the computer and the user’s points.● The computer’s total should remain hidden until the loop has finished.● After the loop has finished, the computer’s total is revealed, and whoever the playerwith the most points without going over 21 wins.Additional requirements:Solution, must be object oriented design remonstrated with a driver.Welcome the user with a message that you read from a file called ‘input.txt’.Write the results of the game to the terminal and also to the output file called, ‘output.txt’ and remind the user to look at that file if he/she wants to.You only need to submit the designs, input/output files ( if applicable ) source code ( .java and not the project or the .class ) files of all the classes you’ll implement and the driver program for the problem. ( Do not submit the whole project folder and irrelevant files. )

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

Do you need help with this question?

Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.

WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.

With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.

Chat with us today! We are always waiting to answer all your questions.

Click here to Place your Order Now