Computers and Technology, 16.10.2020 14:01 jwbri
Write a program which simulate rolling dice. When the program runs, it will prompt the user to choose a number ranging from 1 to 6. It will then randomly choose a number between 1 and 6. The program will print the message "Your guess is correct!" if the guess number equals to the dice number, otherwise it will print "Wow! The dice number is --.". It should then ask the user if you’d like to roll again. Enter "1" to roll again and enter "0" to end the game. Concepts to keep in mind:
Concepts to keep in mind:
• Random
• Integer
• Print
• While Loops
Output:
Enter your guess number between 1 and 6: 5
Wow! The dice number is 1
Do you want to dice it up again:Enter 1 and if not enter 01
Enter your guess number between 1 and 6: 4
Wow! The dice number is 1
Do you want to dice it up again:Enter 1 and if not enter 01
Answers: 2
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
Computers and Technology, 22.06.2019 22:30
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
Computers and Technology, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
Write a program which simulate rolling dice. When the program runs, it will prompt the user to choos...
Mathematics, 10.11.2019 16:31
Mathematics, 10.11.2019 16:31
History, 10.11.2019 16:31
Mathematics, 10.11.2019 16:31
Mathematics, 10.11.2019 16:31
Mathematics, 10.11.2019 16:31
Mathematics, 10.11.2019 16:31
History, 10.11.2019 16:31
Biology, 10.11.2019 16:31
Social Studies, 10.11.2019 16:31
Mathematics, 10.11.2019 16:31