What kind of loop should be used in a game where the user is guessing a secret code and the message"guess again" appears until the user guesses correctly?

Answers

Answer 1

Answer:

While loop

Explanation:

It should be noted that the number of times which the computer will ask the user to take a guess is not known.

When we have a condition like this, the while loop (or in some programs; the do-while loop) is to be used.

To further back my point, see the following program in python.

secret_code = 1234

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

while user_guess != secret_code:

    user_guess = int(input("guess again: "))

print("You guessed right")

The above program will keep asking the user to take a guess until the user enters 1234.

This may or may not be possible with a for loop.


Related Questions

5. Robotics deals with the design, construction, operation, and use of robots, as well as computer systems for their control, sensory feedback, and information processing.
These technologies are used to develop machines that can substitute for humans and
replicate human actions.
a) False
b) True

Answers

The answer would be

True

Help brainliest True or False

In Python, the first character in a string has an index position of one.
TRUE/False

Answers

Answer:

False

Explanation:

Hope this Helps! :)

Answer:

False

Explanation:

The first character in the string has an index of 0

Rapunzel s-a născut într-un ţinut îndepărtat într-un regat necunoscut. Mama vitregă a închis-o pe Rapunzel într-un turn foarte înalt ce avea N metri. Aici Rapunzel urma să-şi petreacă toată copilăria. Pentru a-i trece timpul mai uşor, Rapunzel cânta din zori şi până în seară, cântecul ei auzindu-se în tot ţinutul. Atras de vocea de privighetoare a fetei, Flynn Rider şi-a propus să se caţere pe pereţii exterior ai turnului şi în fiecare zi să procedeze astfel: de la răsăritul până la asfinţitul soarelui să parcurgă M1 metri iar apoi, de la asfinţit până la miezul nopţii încă M2 metri. Scrieţi un program care determină după câte zile ajunge Flynn Rider la Rapunzel.

Answers

Iche hebie zaft no guts dude

Please explain what Level 5 Automation is and give 2 examples of the technology.

Answers

Level 5 ( Full Driving Automation ) Level 5 cars won't even have steering wheels or acceleration / braking pedals . They will be free from geofencing , able to go anywhere and do anything that an experienced human driver can do .

Pls follow me and Mark as brainlest!!! :-)

HEEEEELPPP!!!BRAINLIEST!!! THIS IS URGENT!!!

Read the following code:

count in range(80):
leo.forward(count * 2)
leo.left(count + 2)

There is an error in the for loop. What should be fixed?

Add a colon to the end of the statement
Begin the statement with the proper keyword to start the loop
Place the loop condition outside the parentheses
Replace the parentheses around the range with quotation marks

Answers

Answer:

Begin the statement with the proper keyword to start the loop

Explanation:

Given

The code segment

Required

Fix the code

The first line of the code segment is meant to be a for loop, but it does follow the right syntax.

This is so because the for keyword is missing.

The first line should be corrected and replaced with:

for count in range(80):

Hence, option (b) is correct

explain how do compare and contrast graphic organizers help you to synthesize information?

Answers

Answer:

Answer: Given two or more sets of features of items, people, events, etc; compare and contrast graphic organizers help you to see what the sets have in common and what difference one set from the others, that is, what characteristics are unique from each set.

Explanation:

Given two or more sets of features of items, people, events, etc; compare and contrast graphic organizers help you to see what the sets have in common and what difference one set from the others, that is, what characteristics are unique from each set

What is the role of the connection medium?

Answers

wth does that mean?!

.xls is the file extension for this file type

A. Image File

B. Internet File

C. Spreadsheet File

D. Word Processing File

Answers

Answer:

Spreadsheet File

Explanation:

Most word processing files are doc or docx

Most internet files are htm or html

Most Image files are jpg or png

In the Business world people are often measured by their???

A- soft skills
B- hobbies
C- iq
D- technical skills

Answers

Answer: D technical skills

What types of data can you filter using the
AutoFilter tool? Check all that apply.
text
numeric data
images
sound
DONE

Answers

Answer: A and B

Explanation: just did it on edge

Select all the correct answers.
Flynn has drafted a research paper using a word processor. Which of the following will help him to enhance the readability of the paper and give it a professional look?

using bulleted or numbered lists
tracking revisions to the draft
presenting data in tables
inserting headers and footers on each page
formatting section headings in a different font type and size than body text
SELECT ALL THAT APPLY WILL GIVE BRAINLIEST

Answers

Answer: Bulleted or numbered lists, presenting data in tables, and the formatting one.

Explanation: I’m taking the test and i’m pretty sure that’s right, lmk if you got a better answer though!

Answer:

A, C, E

or 1, 3, 5

Explanation:

Took the test!

Will mark BRAINLIST only if correct answer
Please need help ASAP only answer if u know the correct answer without plagiarism please (plus 15 points!)

Q1.illustrate the ways to creat human design with good impact to others. (5 ways at least)

Q2.( in the pic)

Answers

Answer:

Yes, because it adds meaning to Sam life by providing him ways to calm himself and sooth his mind and also helps him deal with stress in his life

20 points for ez question lol

Which are characteristics of effective presentations? Check all that apply.

The presentation is well organized.
The presenter speaks clearly.
The presenter reads from notecards.
The presentation is enhanced with visual aids.
The presentation includes some delay to set up audio or video.
The presentation captures the audience’s attention.

Answers

The characteristics of effective presentations are:

The presentation is well organized. The presenter speaks clearly.

What are characteristics of an effective presentation?

Others are:

The presentation is enhanced with visual aids. The presentation captures the audience’s attention.

A good presentation is known to be one that is often concise and also  focused on the topic that is under discussion.

Note that when the above presentation follows the option written above, it is said to be an effective or good presentation.

Learn more about presentations from

https://brainly.com/question/24653274

#SPJ2

Answer:

A,B,D,F

Explanation:

The presentation is well organized.

The presenter speaks clearly.

The presentation is enhanced with visual aids.

The presentation captures the audience’s attention.

Energy requirements of analog and digital signals.

First to get the correct answer is brainliest!

Answers

Analog signals require more energy.

Analog=Constant flowing modulated

Digital is bursts of on/off binary data.

Answer:

Explanation:

Analog requires more energy but I’m still trying to figure out what digital is please let me know if you found the answer

Which is an email protocol that retrieves email without deleting the email and its attachments from the server?
Simple Mail Transfer Protocol (SMTP)

Internet Message Access Protocol (IMAP)

Post Office Protocol version 3 (POP 3)

Simple Network Management Protocol (SNMP)

Answers

Answer:

Internet Message Access Protocol (IMAP)

Explanation:

The "Internet Message Access Protocol" or IMAP was created by Mark Crispin at the Stanford Knowledge Systems Laboratory. It allows a person to access his email from his local server. In comparison to the Post Office Protocol Version 3 (POP 3), which deletes the emails once they are downloaded, the IMAP allows the contents to be saved on the server. The email will only be deleted if the user intends to do so.

Answer:

It is Pop 3 not IMAP

Explanation:

Correct on edg 2022

Which one of these is NOT a function of an operating system? *

Managing computer hardware
Managing computer software
Allowing humans to talk to the computer
Performing quick calculations

Answers

Answer:

Allowing humans to talk to the computer

Explanation:

the operating system manages the computer hardware and software

and it also allows the ALU to perform quick calculations

Here dude this is what I was talking about

Answers

Answer:

go to your email and refresh the page and if it didnt work just email them

Put ur number if I dosent work then send them a email

choose the correct term to complete the sentence.

Answers

Answer:

Epoch

Explanation:

Anyone recommend any underrated kpop songs? I'm mostly into girl group songs, but I'd be nice to listen to a boy group song for once lol.

When I say underrated please don't put songs with more than 30 million streams lol.

Songs I recommend:

Loona/Cherry-Love Cherry Motion
Loona/ViVi-Everyday I Love You
Binu-Bibi
BIYA- COTAI
Luri- Blah Blah
Nature- OOPSIE
Nature- Girls
fromis_9- Heart to Heart
fromis_9- DKDK

There's so much more, buy my brain just stopped working

Answers

Answer:

Omona - Mixnine.

Highlight - Iz*one.

Downpour - IOI.

Goodbye - 2NE1.

Lonely - Sistar.

Stylish - Loona.

Satellite - Loona.

Twilight - Kim Lip.

Explanation:

Answer:

NCT127 /STCKER

Explanation:

please help me guys​

Answers

Answer:

1. Machine Independence

High level languages will have something beneath them that automatically can compile your code into different machine languages for different devices. This means that you can program for just about any device and not have to re-write your code.

2. Micro computers

Almost all the computers that average people interact with today are microcomputers. A microcomputer usually has a single main processing chip or central processing unit. They're smaller than mainframe computers, which dominate a reasonably sized room, and minicomputers, which may be as tall as a refrigerator.

3. VLSI

Third generation computers are basically what we work with today. They use VLSI (Very large scale Integration) which started in the 80s and continues to be the point where modern computers are at.

Name and define (or list the set that defines) three of the four common data types in programming.

Answers

Answer: this is the  Answer your question

Software that displays advertising material when online.

A. Adware

B. Advertisware

C. Consumerware

D. Sellware

Answers

Answer:

adware

Explanation:

Adware is a software that shows ads etc online, but also sometimes on the desktop.

Advertisware is not a real term, this is to throw you off.

Sellware is a website not a type of software

Adware is software that displays advertisements automatically once installed.

Will MARK BRAINLIST
What refers to the level at which a player is interacting with a story or game?

Group of answer choices


engagement


flow


emotion


distance

Answers

I’m not 100% sure... but I think the answer is engagement.

Hope this helped!

A small business has been experiencing power outages in their area. When checking the IP-based security camera, they were not able to access the camera. They verified the camera was on and had power. What is MOST likely the problem?

Answers

Group of answer choices.

A. The camera has an invalid gateway address.

B. The camera has been damaged by the power outage.

C. The camera's memory card is full

D. The camera is not connected to the wireless network.

Answer:

D. The camera is not connected to the wireless network.

Explanation:

An IP address is an acronym for internet protocol address and it can be defined as a unique number assigned to a computer or other network devices, so as to differentiate each device from one another in an active network system. Thus, an IP address is typically used to uniquely identify each computer or network devices connected to the internet or network.

In Computer networking, IP address are classified into two (2) main categories and these are;

1. Local (internal) IP address.

2. Global (external) IP address.

In this scenario, a small business has been experiencing power outages in their area. When checking the IP-based security camera, they were not able to access the camera. They verified the camera was on and had power. Thus, what is most likely the problem is that, the camera is not connected to the wireless network.

This ultimately implies that, the IP-based security camera is only powered on but is not interconnected with the other devices on the wireless local area network (WLAN).

Complete the static method stringSearch, which returns a String that tells where the first occurrence of the characters (chr) were found ("The characters were found at ____ index.") or it says, "Those characters could not be found." The String to be searched (phrase) and the characters that are being looked for (chr) are passed in as arguments. (9 points) public static String stringSearch (String phrase, String chr) { ** Complete the code ** }

Answers

Well can't do it for you but try using that phrase argument with string compare functionality

Match the example with the type of collection.

{'casa': 'house'}


[3, 5]


(3, 5, 'dog')

Answers

Answer: First is a dictionary, second is a list, and third is a tuple

Explanation:

The text between and defines the _____.


active code on a page

active text on a page

active Web-page area

active image on a page

Answers

Active text on a page

which line of code will allow you to only load the localtime() method into active memory

Answers

Answer:

from time import localtime

Explanation:

have a lovely day :)

The line of code that will allow you to only load the localtime method into active memory is time.

The localtime function is simply known to be time in seconds as long as Epoch is targeted by timer into a broken-down time.

It is mostly written in local time. The function is known to be of timezone and any seasonal time adjustments. Local timezone information is used as though localtime() calls tzset().

LocalTime cannot have a muted date-time object that shows a time, often viewed as hour-minute-second. Time is shown in nanosecond precision.

Learn more from

https://brainly.com/question/19639119

A structure that organizes data in a list that is commonly 1- dimensional or 2- dimensional
Group of answer choices

Array

Linear Section

Constant

No answer text provided.

Answers

Answer:

  (a)  Array

Explanation:

An array is a data structure that can be used to organize 1- or 2-dimensional data in a list.

Answer:

(a) Array

Explanation:

Do you think people are willing to buy these products? Why?

Answers

What products ma’am/sir

Answer:

ano pong product ok anwer

Explanation:

he/she is willing to buyy a product of the product is good and the entrepreneuris also good and always clean your product and if its good im sure he or she buy that product exept if she/he is nothing money

Other Questions
The diagram shows a track composed with a semicircle on each end. The area of the rectangle is 8,400 square meters. What is the perimeter of the th rack? Use 3.14 for pi if KL = LM and KJ = JM, find m KJLplease, i really need your help! i need help asap!! i will give brainliest The __________________ is the belief that listening to this composers music will improve test scores. someone help me real quick Compared to ballet dancing, hip-hop dancing __________.A. Harder on the feet.B. Less physical.C. More improvised.D. More delicate. What is the slope of this line Is this statement true or false?The Republican Party was started by people who were in favor of the spread of slavery.truefalse The fastest flow is on the inside of a meander bend. True or false What is the linear inequality that represents the graph shown? 15/16 answer 2 questions correctly for brainiest 3.5s + 5.1s simplified An airplane makes a 2,748-mile flight in 6 hours. What is the airplane's average rate of speed in miles per hour? ASAP Please answer. Three students sit in the first row. In the second row, 3 students sit behind each of those students, and so on. Write an expression with exponents to show how many students sit in the third row? How many total students are seated? How do you draw a lewis structure? Allows input/output of audio info to and from the computer.A. Central Processing UnitB. Sound CardC. Video CardD. Audio Player MiKiyah invested $2,500 in a simple interest account for 2 years. At the end of the 2 years, she has earned $75 in interested. What was the simple interest rate of the account? Bettner, Inc., is a calendar year corporation whose financial statements for 2015 and 2016 included errors as follows:Year Ending Inventory Depreciation Expense2015 $ 12,000 overstated $ 22,300 overstated2016 8,000 understated 6,000 understatedAssume that inventory purchases were recorded correctly and that no correcting entries were made at December 31, 2015, or December 31, 2016. The errors were discovered in 2017, after the 2016 financial statements were issued.Required:Ignoring income taxes, prepare the journal entry Bettner would make in 2017 to correct the errors. 13. Which equation has real, rational, and unequal roots?A) x2 + 10x + 25 = 0 B) 22 5x + 4 = 0C) x2 3x +1=0 D) 22 2x + 5 = 0Help I really need to finish this can somebody help