subject

Write a program for playing a game with the computer. first, generate a random integer in the range of 6 through 9. this will be the computer’s pick. then generate three random integers for the human player. these random integers are in the range of 1 through 10. if any of these three random integers is greater than the computer’s pick, the human player wins the game. otherwise, the human player loses. you must use a for loop to generate these three random integers. in each iteration, generate and display one random integer. if it is larger than the computer’s pick, display "you have won the game" and break out of the loop. if the human player cannot get a random integer larger than computer’s pick after three iterations , display "sorry you have lost the game".

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Raveena is making a professional presentation for a newly launched product of her company. she wants to incorporate the following features in her presentation. a) to add serial numbers in each slide b) to add name of her company on top of each slide. c) to add the picture of her product on the second slide(the picture of her product is stored on her computer) write the commands/features of her presentation tool using which she can perform the above operations.
Answers: 2
question
Computers and Technology, 22.06.2019 06:20
In what kind of attack can attackers make use of millions of computers under their control in an attack against a single server or network availability confidentiality integrity identity automated attack software? those who wrongfully disclose individually identifiable health information can be fined up to what amount per calendar year? single most expensive malicious attack hipaa what are script kiddies? advanced persistent threat security manager security engineer what level of security access should a computer user have to do their job what process describes using technology as a basis for controlling the access and usage of sensitive data? cybercriminal
Answers: 1
question
Computers and Technology, 24.06.2019 06:00
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
You know the right answer?
Write a program for playing a game with the computer. first, generate a random integer in the range...
Questions
question
Mathematics, 21.10.2020 23:01
question
Mathematics, 21.10.2020 23:01
question
Chemistry, 21.10.2020 23:01
question
Social Studies, 21.10.2020 23:01
question
Mathematics, 21.10.2020 23:01