1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Wewaii [24]
3 years ago
15

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

Computers and Technology
1 answer:
Arada [10]3 years ago
5 0

Answer:

Written in Python

import random

tryagain = 1

while tryagain == 1:

guess = int(input("Enter your guess number between 1 and 6: "))

num = random.randint(1,7)

if guess == num:

print("Your guess is correct")

else:

print("Wow, the dice number is "+str(num))

tryagain = int(input("Do you want to dice it up again:Enter 1 and if not enter 0: "))

Explanation:

I've added the full source code as an image attachment where I used comments to explain difficult lines

You might be interested in
Satırlar ve sütunların kesişmesiyle oluşan kutular aşağıdakilerden hangisidir
Kryger [21]

Answer:

Huh English please......

7 0
2 years ago
Referring to the BST and BSTNode classes for binary search trees as done in class: Determine the result of executing root. whate
Rzqust [24]

Answer:

Try to add allthe numbers up

Explanation:

3 0
3 years ago
Explain two ways of searching information using a search engine.​
lozanna [386]

answer:

navigational search queries · for example, “how to make cake?”

informational search · for example, “y-o-u-t-u-b-e” or “apple"

explanation:

  • navigational — these requests establish that the user wants to visit a specific site or find a certain vendor
  • informational — in these instances, the user is looking for certain information
5 0
2 years ago
Which domain of an IT infrastructure primarily includes the processes and procedures that end users use to remotely access an or
nadezda [96]

Answer:

Remote Access Domain

Explanation:

Remote access domain allows users to access organization IT infrastructure remotely. It is one of the seven domains of IT infrastructure. Other domains of IT infrastructure include :

1. User Domain,

2.User Domain,

3. Workstation Domain,

4. LAN Domain,

5. LAN-to-WAN Domain,

6. System/Application Domai

7 0
3 years ago
Suppose you run a query, and a dialog box appears asking you to enter a date. You are most likely working with a ________ query.
masya89 [10]

Answer: Parameter

Explanation:

7 0
2 years ago
Other questions:
  • Mia is attending a team meeting to discuss how to prevent accidents. One of her teammates suggests pushing all the desks against
    15·2 answers
  • The feedforward part of the conversation should do all of the following except __________.a.identify the toneb.introduce the pur
    11·1 answer
  • Write a program that gets a single character from the user. If the character is not a capital letter (between 'A' and 'Z'), then
    15·1 answer
  • Determine the “answer” to the formula according to the spreadsheet below:<br><br> =A3 + B4 + D2.
    15·1 answer
  • Of the sequences listed below, which shows the correct order of the steps in the incident management workflow: (1) authenticate
    14·1 answer
  • Fix thos code:Error using spm_check_installation&gt;check_basic (line 93) You do not appear to have the function search path set
    6·1 answer
  • Write a for loop that computes the following sum: 5+10+15+20+...+485+490+495+500. The sum should be placed in a variable sum tha
    7·1 answer
  • Good ways to increase sales on phone accesories?
    10·2 answers
  • Assume the availability of a function is_prime. Assume a variable n has been associated with positive integer. Write the stateme
    15·1 answer
  • Which is said to be ‘computer on a chip’ (a) Micro processors (b) Microcontrollers (c) Both (c) None of the above
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!