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 02:30
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
You know the right answer?
Solution, must be object oriented design remonstrated with a driver. Welcome the user with a message...
Questions
question
Mathematics, 23.03.2020 08:48
question
Mathematics, 23.03.2020 08:49
question
Mathematics, 23.03.2020 08:50
question
Mathematics, 23.03.2020 08:52
question
English, 23.03.2020 08:52
question
History, 23.03.2020 08:52
Questions on the website: 13722367