subject

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. Write 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. Expert Answer

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
The width of a piece of rectangular land is 5m shorter rhan 1/3 of its length .find the width of the land if the length is 60m,150m.
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
You know the right answer?
Solution, must be object oriented design remonstrated with a driver. Welcome the user with a message...
Questions
question
Mathematics, 01.06.2021 20:10
question
Mathematics, 01.06.2021 20:10
question
Mathematics, 01.06.2021 20:10
Questions on the website: 13722361