A computer game picks a random number between 1 and 100, and asks the player to guess what the number is. If the player makes a correct guess, the game congratulates them, and stops. If the player does not make a correct guess, the game tells the player that their guess is either too high, or too low. If the player guesses with an answer that is not a number between 1 and 100, an error message is displayed. The game continues to give the player chances to guess, until the player guesses correctly. You are going to plan an interactive program to implement this game. do this using scratch

Answers

Answer 1

Answer:

In Python:

import random

computerguess = random.randint(1,101)

userguess = int(input("Take a guess: "))

while not (userguess == computerguess):

   if userguess<1 or userguess>100:

       print("Error")

   elif not (userguess == computerguess):

       if userguess < computerguess:

           print("Too small")

       else:

           print("Too large")

   userguess = int(input("Take a guess: "))

print("Congratulations")

Explanation:

This imports the random module

import random

Here, a random number is generated

computerguess = random.randint(1,101)

This prompts the user for a guess

userguess = int(input("Take a guess: "))

The following loop is repeated until the user guess correctly

while not (userguess == computerguess):

If user guess is not between 1 and 100 (inclusive)

   if userguess<1 or userguess>100:

This prints error

       print("Error")

If the user guessed is not correct

   elif not (userguess == computerguess):

If the user guess is less

       if userguess < computerguess:

It prints too small

           print("Too small")

If otherwise

       else:

It prints too large

           print("Too large")

This prompts the user for a guess

   userguess = int(input("Take a guess: "))

The loop ends here

This prints congratulations when the user guess correctly

print("Congratulations")


Related Questions

Select all the correct answers.
Which TWO of the following are recommended practices to protect users' privacy while using email services?
Avoid forwarding a personal emails to others.
Avoid forwarding jokes and trivia using email.
Avoid using webmail if you have an email client on your computer.
Avoid opening emails from unrecognized senders.
Avoid using webmail in the workplace:

Answers

Answer: Avoid forwarding a personal email to others and most likely Avoid forwarding jokes and trivia using email.

The recommended practices to protect users' privacy while using email services are options A and C: avoid forwarding a personal emails to others and avoid using webmail if you have an email client on your computer.

What do you mean by term E-mail?

An E-mail is refers to as the communication source. It is a specialized computer network that stores, processes, and send the material from one person to another within seconds..

E-mail is considered as the computer equivalent but it has many advantages like timeliness and flexibility.

Moreover, the content of email include text, files, images or other kind of attachments send by the specified person to the one or more than one groups.

In order to protect the personal data of the user, it is recommend that people should note share their personal information with other and specially the young generation do not use webmail if the another party already utilize your computer.

Nowadays more frauds are happen due to the fact that people are more indulge in these communications for their better advancements. So, we have to take every step very carefully.

Therefore, correct options are A and C.

Learn more about E-mail, refer to the link:

https://brainly.com/question/13313275

#SPJ2

Dan is working with a team that is integrating an application with a database system. Which of these statements are true with regard to database systems?

The testing phase of the SDLC creates databases.

Selection of a DBMS occurs during the designing phase of the SDLC.

Database development also has a life cycle, with phases similar to those of the SDLC.

All compilers intrinsically support database creation.

Databases use query language to perform operations.

Answers

Answer:

Database development also has a life cycle, with phases similar to those of the SDLC.

Databases use query language to perform operations.

Explanation:

PLATO :) no prob btw

Explain how the value of 90 is stored in the Java variable, myFinalGrade.

Answers

Answer:

As integer

Explanation:

More information is needed to properly answer this question.

However, I will answer this question with the limited information given.

90 will be stored as an integer in the variable.

First, the variable needs to be declared;

int myFinalGrade;

Then the variable is initialized;

myFinalGrade = 90;

Hence, the value is stored as an integer.

Certain programs, such as Adobe Acrobat
Reader, may install additional tabs to the
Ribbon. These tabs are called add-ins.
True or False

Answers

Answer:

true

Explanation:

mark brainliest ☺☺☺☺☺☺

Document accurately describes the differences between servers and computers and between local and wide area networks. Document provides at least four suggestions including password managers and safe browsers.

Thinks someone could help me out with this? ​

Answers

Answer:

Cell towers and internet uses allow local and wide area networks, but they also allow you to steal IP and things like that.

Explanation:

This is quite difficult. I appologize if I get this wrong.

(Also if you upload a file for someone to answer, and they give you a link, don't click on it!! They track your IP address and things like that!)

Bryan's company is new and has limited funds to work with. He has been tasked with finding a telecommunications technology that will improve worker productivity on their latest project. So he doesn't go over budget, he must carefully consider all items that affect cost. His considerations include:

Answers

Answer:

Download Speed, Operating Costs, & Purchase Price.

Explanation:

He needs it quick and he's on a budget, so he's gonna be worried about these three things that fall under the categories.

You're welcome my fellow seeker.

Successful businesses must have managers who are able to complete each of the management functions well. True False

Answers

Answer:

I think that is true.

........... Is ready made button for defining hyperlink on a slide​

Answers

Action Buttons An action button is a ready-made button that you can insert into your presentation and define hyperlinks. Use action buttons when you want to include buttons with commonly understood symbols for going to the next, previous, first, and last slides.

PlEASE HELP!

Identify in the space below three rules you feel are most important for deciding what personal information is
appropriate to post online.

Answers

Answer:

.

Names. Be careful how you use your name. Avoid using your full name. Even a nickname could spell trouble -- for instance, if it says something suggestive about your character, if it's a name you already use with others who know your real identity, or if it's made up from your real name (say, from your initials). First names are best, unless yours is extremely unusual. These days, many people do use their full names for online posting -- on social media sites and blogs for example. Just know that in doing so you're raising the risk of becoming an identity theft victim.

Photos. Bearing in mind Golden Rule #1, don't post photos you wouldn't want everyone to see. Full face, high resolution photos may be "snagged" (copied) and used for identity theft. Some people don't know how easy this is to do with any photo, with just a couple of clicks. Also, as a matter of etiquette, don't post photos of others without their permission, unless you're prepared for the consequences if the other person doesn't think it's funny. For preference, use photos in which identities are obscured. And, as a general rule, don't post photos of children online (especially not other people's children without permission). If you want to share photos of your kids, put them in a private online album, accessible by invitation or password. Or email them directly to your friends.

Explanation:

Meat and poultry exposed to some forms of radiations to extend shelf life. *

Answers

Answer:

Food Irradation

Explanation:

:)

A. RHYTHM
B. HARMONY
C. INFORMAL BALANCE
D. FORMAL BALANCE
E. PROPOTION
F. REPETITION
G. EMPHASIS
H.GRADIATION
I. BALANCE
G.RADIATION

1. It is a type of balance when the structure decoration and
accessories are different both sides from the center of the design.
2. These are smooth movement repeated again and again
3. It is a type of rhythm in which the eyes can move easily from
one part to the other on the small lines created by gathers
4. It a
principle of design in which from the center of the dress the
design should be identified on both sides.
5. It is a type of rhythm in which the parallel lines are formed by the
use of seams, lace, etc. which helps uninterrupted eye movement
6. It is a type of rhythm can be created by gradual change of lines,
shape or shade of the color
7. It is a type of balance shown when pants have pockets on both
sides with the same style, size and shape
8 It refers to a principle of design in which a large hat on a small
boy is out of proportion to his size.
9. It is a principle of design when a pretty collar, an attractive bow
bow or a lovely pin are observed
10. It is a relationship of different portion of a dress​

Answers

Answer:

1. Informal balance.

2. Rhythm.

3. Radiation.

4. Balance.

5. Repetition.

6. Gradation.

7. Formal balance.

8. Proportion.

9. Emphasis.

10. Harmony.

Explanation:

Principles of designs can be defined as concepts which are typically used for organizing or arranging the structural

elements of a design. Thus, the ways in which these principles are applied generally affects the message of a piece of work.

1. Informal balance: It is a type of balance when the structure decoration and accessories are different both sides from the center of the design.

2. Rhythm: These are smooth movement repeated again and again

3. Radiation: It is a type of rhythm in which the eyes can move easily from one part to the other on the small lines created by gathers

4. Balance: It is a principle of design in which from the center of the dress the

design should be identified on both sides.

5. Repetition: It is a type of rhythm in which the parallel lines are formed by the use of seams, lace, etc. which helps uninterrupted eye movement

6. Gradation: It is a type of rhythm that can be created by gradual change of lines, shape or shade of the color

7. Formal balance: It is a type of balance shown when pants have pockets on both sides with the same style, size and shape.

8. Proportion: It refers to a principle of design in which a large hat on a small boy is out of proportion to his size.

9. Emphasis: It is a principle of design when a pretty collar, an attractive bow or a lovely pin are observed.

10. Harmony: It is a relationship of different portion of a dress.

Me pueden decir todo lo que sepan sobre las redes informáticas porfa? De preferencia que sea algo largo

Answers

Answer:

Una red informática es una fusión de varios sistemas electrónicos técnicos, principalmente independientes que permite que los sistemas individuales se comuniquen entre sí. El objetivo aquí es el intercambio de recursos como impresoras de red, servidores, archivos y bases de datos.  

La estructura de red más conocida es Internet, y los protocolos a través de los cuales se transmite la información más conocidos son el TCP (Protocolo de control de transmisión) y el IP (Protocolo de Internet), pero varios otros protocolos también desempeñan funciones importantes en Internet. Internet en sí no es una red homogénea, sino que consta de un gran número de subredes, algunas de las cuales tienen diseños muy diferentes, que solo tienen en común las capas de protocolo superiores y que manejan la transmisión de datos de usuario en las capas de protocolo inferiores en muy diferentes caminos.

Select the correct answer from each drop-down menu. Which are the features of conditional formatting? Conditional formatting enables you to and .

Answers

Answer: oracle planning data sheet.

Edhesive 8.5 code Practice help me pls

Answers

Answer:

twainQuotes = ['I have never let my schooling interfere with my education.', 'Get your facts first, and then you can distort them as much as you please.', "If you tell the truth, you don't have to remember anything.", 'The secret of getting ahead is getting started.', "Age is an issue of mind over matter. If you don't mind, it doesn't matter. "]

print(twainQuotes)

twainQuotes.sort()

print(twainQuotes)

twainQuotes.insert(1,'Courage is resistance to fear, mastery of fear, not absence of fear.' )

print(twainQuotes)

Explanation:

ok

The program is an illustration of lists and list manipulation

Lists

Lists are variables that are used to hold multiple values in one variable name

Python Program

The program in Python, where comments are used to explain each line is as follows:

#This initializes the list

twainQuotes = ['I have never let my schooling interfere with my education.', 'Get your facts first, and then you can distort them as much as you please.', "If you tell the truth, you don't have to remember anything.", 'The secret of getting ahead is getting started.', "Age is an issue of mind over matter. If you don't mind, it doesn't matter. "]

#This prints the list elements

print(twainQuotes)

#This sorts the list elements

twainQuotes.sort()

#This prints the sorted list

print(twainQuotes)

#This inserts an element into the list

twainQuotes.insert(1,'Courage is resistance to fear, mastery of fear, not absence of fear.' )

#This prints the new list

print(twainQuotes)

Read more about lists and list manipulations at:

https://brainly.com/question/24941798

What’s an input Device

Answers

Somthing that you plug in can I have brainlyist I just need one more :)

Answer:

._.  a computer is a input why because you can tell

Explanation:

PLS REPLY ASAP WILL MARK BRAINLIEST

Answers

Answer:

I replied ...?

Explanation:

He removed vertical borders, kept only vertical borders for the header and the totals. He also added shading to the rows.

state 4 error checking methofds for data transmition​

Answers

Answer:

parity bits

CRC

MD5 hash

SHA256 hash

After inserting a video into your slide how can you test it

Answers

Explanation:

How to insert video into PowerPoint

Click on the slide you want, then go to Menu > Insert.In the top right corner, click Video > Video on My PC.Find the video you want to add and click “Insert”.Adjust the settings in the Video Format toolbar to make sure it plays the way you want.

how can online presence help others?

Answers

Answer:

Online Presence helps others who might be naturally introverted, stuck in a precarious situation, or even by allowing someone company who desperately needs it.

Explanation:

int x = 42
fill in the missing part of the following code to divide x by 3 using the shorthand division operator ​

Answers

42/3 will be equal to 14

Select the best answer to the following question.
Remote data storage and the ability to access data from any device using the Internet is called

Answers

Answer:

I think its called "cloud computing"

Answer:

cloud computering

Explanation:

Helppppp plzzzz it's computer science helpp plzzz

Answers

1. String

2. "is assigned to"

Hello Everyone,
Please I have been have problems answering this question. I do not know if anyone could be of help to me.
Describe the difference between objects and values using the terms “equivalent” and “identical”. Illustrate the difference using your own examples with Python lists and the “is” operator.

Describe the relationship between objects, references, and aliasing. Again, create your own examples with Python lists.

Finally, create your own example of a function that modifies a list passed in as an argument. Describe what your function does in terms of arguments, parameters, objects, and references.

Create your own unique examples for this assignment. Do not copy them from the textbook or any other source

Answers

I can answer the first question a bit:
Objects are nothing but instance of a class. To know two objects are identical are not, use the is operator.
Is operator: The is operator is used to compare the two objects that are identical or not. The is operator returns true, if the variables on either side of the operator point to same object. If the variables on either side of the operator point to different object then it can also return true.
Value: Value is also an object that assign to a variable. Comparing to objects through === operator.
The term equivalent means.... is used to when the two operators are equal or not , if equal condition returns true.

is a way og saving a file so it can be used by a different program​

Answers

Answer:

what are you even asking

libre office is what program​

Answers

I’m not 100% sure what this question is asking, but I believe the answer would be “an open-source office productivity software”.

Question 6 (2 points)
The recipe for good communication includes these "ingredients":

a.clause, brevity, comments, impact, value

B.clarity, brevity, comments, impact, value

C.clarity, brevity, context, impact, value

D.clause, brevity, context, impact, value

Answers

Answer:

C

Explanation:

i think lng hehehehehe

I need anyone's help so please do so!
Do some research online about plasmapheresis. Then write a paragraph explaining what it is and in what kind of situation it would be useful to a patient.

Answers

I don’t understand this or else I would help
Plasmapheresis is the process in which plasma is separated from the blood cells. After the plasma has been treated, they either put it back, or replace it with saline solution. A situation that someone would need plasmapheresis is if they had an auto-immune disease. Certain auto-immune diseases can be treated with plasmapheresis, such as: myasthenia gravis, Guillain-Barré syndrome, or chronic inflammatory demyelinating polyneuropathy.

To add a hyperlink to your presentation, select the text, choose Hyperlink from the Insert menu, and then
type the word “hyperlink" in the Target field.
O click Apply.
change the font to blue.
O type the Internet address in the Target field.

Answers

Answer:

I guessed D, taking it right now, sorry if it's wrong

Explanation:

Answer:I guess D

Explanation:

acess labeling windows​

Answers

Answer:

I got the same thing

Explanation:

What will be printed if the below code is run?
1. a = "123"
2. b = “456"
3. a = b + "123"
4. b = a
5. print (b + a)

Answers

Answer:

What will be printed if the below code is run?

1. a = "123"

2. b = “456"

3. a = b + "123"

4. b = a

5. print (b + a)

Other Questions
HelpSelect all that apply i need help plzzzzzzzzzz please help b4 i literally will get killedd PLZZZ. B. Directions: Which style of music on the right typically uses the instrument on the left? Circleyour choice. 24 points (3 points each)1. MandolinBluegrass, Bebop, Pop IPunk, Gospel, Bluegrass2. Hammond Organ3. BanjoGospel, Swing, Bluegrass4. Pedal Steel GuitarCountry, Bluegrass, Hip-Hop5. String BassJazz, Soul, Surf Rock6. HornsSoul, Bluegrass, Country7. Electric GuitarGospel, Rock, Bluegrass8. Backup VoiceMotown, Bebop, Swing Which term means a group of organiss that have similar traits and are able to produce fertile offspring? Northeast American Indian Groups and LocationsAccording to the map, what bordered the Northeast cultural area to the east? Which of the following helps to summarize the Eleventh Amendment?The power of the courts is limited within each state.The federal government can sue anyone it wants to sue.Other countries are not allowed to take Americans to court. States are protected from being sued by the federal government. Which countries would you expect to have the strongesteconomy?A countries with high GDPs per capitaB) countries with low GDPs per capitacountries with average GDPs per capita The graph H shows the height, in meters, of arocket 1 seconds after it was launched.a. Find H0). What does this valuerepresent?b. Describe the domain of this function.c. Describe the range of this function. Copy machine makes 44 copies per minute. How long does it take to make 231 copies? Which step is meiosis is shown in the image below ? PLEASE PLEASE HELP ME Dino finds the line-of-best fit for the data set shown. What is the equation of Dino's line-of-best fit? Which statement about oceans is incorrect?A Evaporation occurs when water is warmed by the sun.B Most evaporation and precipitation occur over the ocean.C 97 percent of Earth's water is fresh water from the ocean. D Water leaves the ocean by the process of evaporation. URGENT HELP !!!!!! answer correctly !!!!! Will be marking Brianliest !!!!!!!!!!!!! Which of the following are vital to an industrial growth? What is the percentage of data between 90 and 140? someone help me again please !solve for y. -9y = -36 What is the best summary of the excerpt? Given 4y2 + x 32y + 68 > 0, which ordered pair is part of the solution set? (3, 5.7) (5.9, 4) (8, 5) (13, 3)