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

I am doing a inquiry task for A.I. taking over coding I need answer for in the coding industry be ok with A.I. taking over their job. Any links to webs pages like this would be useful too

Answers

Answer:

hi! How are you? I’m sorry I really need points, but I hope you find the answer soon tho <3

Explanation:

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

Culinary Arts simply means the art of
(7 Letters)

Answers

Answer:

I believe it means C-o-o-k-i-n-g (7 letters)

Explanation:

Answer:

C-O-O-K-I-N-G

Explanation: I got this one correct pls mark as brainliest

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

HELP ASAP
What can be created to handle large numbers of meeting responses?
a task
an event
a new rule
a calendar

Answers

Answer:

a new rule

Explanation:

Sending meeting invitations, updates and receiving responses generates many messages.

And for this reason we create a rule that filters all meeting related messages to a specific folder and handles a large number of meeting responses.

I think it would be a calendar as it is a great was to keep up to date while handling this situation. Hope this Helps!

Which font is most suitable for an academic article on a website? Which is most suitable for casual information?
The
information.
font is most suitable for an academic article on a website. The
font is most suitable for casual

Answers

There are thousands of fonts, there is no clear answer of what is best for ___ website or ___ page. It's all what you think looks good and sometimes depends on the colors on the site.

Answer:

Times New Roman and Arial

Explanation:

plato

What is the measure of each angle of an equilateral traingle what is that answer is it 30 or 45or 60 or 90 hmmmm

Answers

Answer:

60°

Explanation:

The measure of each angle of an equilateral triangle is 60°.

An equilateral triangle is a kind of triangle where all angles are equal to each other.

The sum of angles of a triangle is equal to 180

A triangle has 3 sides

Calculating the measure of each angle,

a + a + a = 180°

3a = 180°

a  = 180 / 3

Therefore a = 60°

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:

it connects computers in different cities and different countries

Answers

Answer:

I think VPN firewall devices can do that.

It depends how close the cities are haha. If they are super, super, close then a LAN. But if they are farther, or even as far as countries then a GAN.

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.

HELP ME ASAP

Use the drop-down menus to explain how to turn off meeting responses.

Meeting responses can be turned off to save room in the email inbox from large numbers of

Turning off meeting responses will disable the command

Answers

Answer:

1 replies 2 tracking

Explanation:

edge

Answer:

replies, tracking

Explanation:

Describe how checksum detects errors​

Answers

Answer:

For error detection by checksums, data is divided into fixed sized frames or segments. Sender's End − The sender adds the segments using 1's complement arithmetic to get the sum. It then complements the sum to get the checksum and sends it along with the data frames.

Acredit given to an author for his or her work is called a(n)
citation.
copyright.
evaluation.
permission.
The answers is catation. I think it is right sorry if it is not

Answers

Answer:

The answer is Citation because it's the credit given to any author

A group of users in a small publishing office want to share large image files in a common folder with high availability. Which of the following devices would best meet this need?
Networked storage appliance
An SSD for each computer
Large USB flash drive to move the files between computers
Portable external HDD for each user​

Answers

Answer:

Network storage appliances

Explanation:

Because I just took a test

Digital and analog audio recordings have pros and cons. Do you think the pros of digital recordings outweigh the cons and therefore prefer digital audio recordings? Or, do you think the cons outweigh the pros and therefore you prefer analog audio recordings? Explain.

Answers

Digital vs Analog Audio is completely personal preference and there is no clear winner on which is better.

But there are some pros and cons about both, Analog sometimes distorts when playing and can be easily scratched and ruins the grooves. Analog is believed to be the true representation of the sound when it was recorded. Digital is not the actual recording of the sound, it's actually a combination of binary code. It is also sometimes mixed or remastered in Digital and sounds a bit different to make it sound better. It also depends on the system you are listening it from. You could have a horrible Digital system its playing through and an amazing Analog system playing, of course the Analog system will sound better in that case. Some believe that Digital is on par to overtake Analog in the "true picture of sound" category but some also say Analog will forever be the best at playing sound and Digital will always be the alternative.

But, in the end it's all personal preference and the pros and cons don't overweigh to make one better than the other.

in how many ways we can connect internet​

Answers

Answer:

There are several ways or methods of connecting to the Internet. There are two access methods direct and Indirect and these can be either fixed or mobile

Explanation:

Answer:

here are many ways a personal electronic device can connect to the internet.  They all use different hardware and each has a range of connection speeds.  As technology changes, faster internet connections are needed to handle those changes.  I thought it would be interesting to list some of the different types of internet connections that are available for home and personal use, paired with their average speeds.

Dial-Up (Analog 56K).

Dial-up access is cheap but slow. A modem (internal or external) connects to the Internet after the computer dials a phone number.  This analog signal is converted to digital via the modem and sent over a land-line serviced by a public telephone network.  Telephone lines are variable in quality and the connection can be poor at times.  The lines regularly experience interference and this affects the speed, anywhere from 28K to 56K.  Since a computer or other device shares the same line as the telephone, they can’t be active at the same time.

DSL.  DSL stands for Digital Subscriber Line.  It is an internet connection that is always “on”.  This uses 2 lines so your phone is not tied up when your computer is connected.  There is also no need to dial a phone number to connect.  DSL uses a router to transport data and the range of connection speed, depending on the service offered, is between 128K to 8 Mbps.

Cable.  Cable provides an internet connection through a cable modem and operates over cable TV lines.  There are different speeds depending on if you are uploading data transmissions or downloading.  Since the coax cable provides a much greater bandwidth over dial-up or DSL telephone lines, you can get faster access.  Cable speeds range from 512K to 20 Mbps.

Wireless.   Wireless, or Wi-Fi, as the name suggests, does not use telephone lines or cables to connect to the internet.   Instead, it uses radio frequency.  Wireless is also an always on connection and it can be accessed from just about anywhere.  Wireless networks are growing in coverage areas by the minute so when I mean access from just about anywhere, I really mean it.  Speeds will vary, and the range is between 5 Mbps to 20 Mbps.

Satellite.  Satellite accesses the internet via a satellite in Earth’s orbit. The enormous distance that a signal travels from earth to satellite and back again, provides a delayed connection compared to cable and DSL.  Satellite connection speeds are around 512K to 2.0 Mbps.

Cellular.  Cellular technology provides wireless Internet access through cell phones.  The speeds vary depending on the provider, but the most common are 3G and 4G speeds.  A 3G is a term that describes a 3rd generation cellular network obtaining mobile speeds of around 2.0 Mbps.  4G is the fourth generation of cellular wireless standards. The goal of 4G is to achieve peak mobile speeds of 100 Mbps but the reality is about 21 Mbps currently.

Explanation:

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

Which of the following are recent trends? Check all of the boxes that apply.
fewer applications
more access points
fewer mobile devices
new applications

Answers

Answer:

More access points

New applications

Explanation:

Answer:

2 and 4

Explanation:

Did it on edge

Anybody know #3 ? I need two ppl to answer this !! Free Brainliest!!

Answers

Answer: A command-line interface (CLI) is a means of interacting with a computer program where the user (or client) issues commands to the program in the form of successive lines of text (command lines). The program which handles the interface is called a command-line interpreter or command-line processor.

Answer:

It b for sureeeeeeeeeeee

behave online in the same way as you wish to be treated true false​

Answers

True; you have treat others the way you want to be treated. It is the golden rule for meeting anyone, whether it's online or in real life. If you were being mean to someone online, would you want someone to be mean to you the same way you were mean to that person? So, the answer is true.

What is used to see the fine details of
graphics on a screen

Answers

Answer:

graphics card

Explanation:

All organizations need good quality cybersecurity to ensure _____. Select 4 options.

operational security

operational efficiency

operational tangibility

operational profitability

operational continuity

Answers

Answer:

option 1

Explanation:

it is because they need better security for operational

Answer:

operational continuity

operational profitability

operational security

Explanation:

The following statements describe the use of graphics in presentations.

Graphics should be large enough to be seen by the audience.
Graphics should be used on every slide.
Graphics should be used when they are relevant to the content.
Many graphics will make a boring presentation interesting.

Select all that apply

Answers

Answer:

I. Graphics should be large enough to be seen by the audience.

II. Graphics should be used when they are relevant to the content.

Explanation:

Presentation can be defined as an act of talking or speaking formally to an audience in order to explain an idea, piece of work, project, and product with the aid of multimedia resources, slides or samples.

PowerPoint application refers to a software application or program designed and developed by Microsoft, to avail users the ability to graphically create various slides containing textual and multimedia informations that can be used during a presentation.

Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

Hence, the following statements describe the use of graphics in presentations;

I. Graphics should be large enough to be seen by the audience.

II. Graphics should be used when they are relevant to the content.

Answer:

I. Graphics should be large enough to be seen by the audience.

II. Graphics should be used when they are relevant to the content.

Explanation:

20 POINTS!!! I NEED HELPP

Answers

Answer:

Apple

Explanation:

Answer:

Windows Internet Explorer

because windows is aka microsoft windows

Write a program using for loop to find the cube of numbers from 50-100
FASTT

Answers

Answer:

JAVA

for(int i = 50;  i <= 100          i++;)

{

   int cubedNum = Math.pow(i, 4);

   System.out.println(cubedNum);

}

Explanation:

The For loop is set so that it will go the amount of times until the variable i reaches 100, then it will stop increasing i.

Then, we raise i to the 4th power in the loop, and then print it out.

#teamtrees #PAW (Plant And Water)

Discuss two business information systems that are used in two different sectors in a modern economy.

Answers

Explanation:

Two business information systems that are used in two different sectors in a modern economy are:

Transaction Processing System (TPS):

The Transaction Processing System (TPS) is a type of data system for capturing, storing, updating and recovering a company's data operations. Transaction systems often try to provide consistent response times to requests even if this is not as important as in real-time systems.

Management Information System (MIS)

MIS is the study of persons, technological systems and associations between them. Management Information Systems (MIS) Professionals at MIS allow businesses to profit maximally from staff, facilities and business process expenditure. MIS is a field of people with a focus on technological support.

PLS HELP MEE!!!

Which characterization would accurately describe hump notation?


1. starting with uppercase letters, followed by the underscore and dollar sign


2. starting with lowercase letters, followed by an underscore, and followed by lowercase


3. starting with lowercase letters, using uppercase letters for the first letter in a new word


4. starting with a dollar sign, using lowercase for the remaining parts of each word

Answers

Answer:

starting with lowercase letters, using uppercase letters for the first letter in a new word

Explanation:

starting with a dollar sign, using lowercase for the remaining parts of each word

Actuators drive everything that moves on a competition robot. The most
common type of actuator in this application is a motor; in particular, VEX
Robots utilize____Motors. *

A)Direct Speed

B)Direct Current

C)Free Current

D)Direct Circulating

Answers

Answer:

c

Explanation:

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.

___________ is the number of pixels per inch

Answers

Answer:

Explanation:

What ever the number is inches is divide it by pixels

Other Questions
In VWX, x = 41 cm, v = 17 cm and W=134. Find the length of w, to the nearest centimeter. can i turn this into twitter ? sometimes you need a quick laugh right ? We make comparisons for two reasons:1._________2.________Pls help my grades arent the best Which city was the first major American city to be built on a location without a navigable river? What allowed this to be possible? please answer the questions above will mark the answer as brainliestsorry supposed to be maths not history Is 4(4f-8)+5= 16f+37 PLEASE HELP! IT WOULD MEAN SO MUCH!Answer the following questions in complete sentences in Spanish.1. Con que frecuencia estudias en la biblioteca? (often)2. A que hora vienes a la escuela? (8 o'clock)3. Cuando vas a bailar el tengo? (now)4. Por que vienen Uds. a la fiesta? (to sing and dance)5. Tell your friends to take notes. How do the terms Amino Acids, Proteins, Lipids, Fatty Acids, Glycerol , Monosaccharide, and nucleotide relate to each other On Monday, Jasmine rides her bicycle m miles in 4 hours. On Tuesday, she rides five times as far in 6 hours.If her average speed for two days is 24 mi/h, how far did she ride on Monday? Round your answer to thenearest tenth of a mile.distance= speedtime An electron, moving toward the west, enters a uniform magnetic field. Because of this field the electron curves upward. The direction of the magnetic field is An electron, moving toward the west, enters a uniform magnetic field. Because of this field the electron curves upward. The direction of the magnetic field is downward. towards the west. upward. towards the south. towards the north. Hannah put $2,000 in a savingsaccount. After 2 years she earned$180 in simple interest. What was herinterest rate? what if the result of conectivity testing is 100%Loss?Explain. What were the differences between Democratic-Republicans and National Republicans? sabrina is making a snack mix. She uses these items. peanuts 5/6, chocolate chips 1/3, granola 1/2, raisins 3/4. What is the total weight Sabrina used What is a theme in the poem "In Spite of War"?A.Life is best when it is not complicated.B.Natural beauty can be found everywhere.C.One should focus on beauty rather than misery.D.One should dwell on life's sorrows. Plz say if any one know The first person that guess what game I play get free games...Answers rblx or among usand I need help in math good luck 15. According to the U.S. Environmental Protection Agency (EPA), spoils fromthan 700 miles of streams.a. subsurface miningb. mountaintop removalc. contour strip miningd. open-pit mininge. area strip mining Employees at Pete's Packaging earn time-and-a-half pay for all hours worked beyond 40 hours.Last week an employee worked a total of 44.5 hours. How much overtime pay did the employeeearn if his regular pay rate is $12.28 per hour? Why are most systems in the human body negative feedback systems?