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
ollegr [7]
3 years ago
11

HELP ME PLZ QUICK Adam is writing a program that: 1) has the user guess a number, and 2) tells the user how many guesses it took

to get the correct answer. But when Adam tests the program, it always outputs that it took the user one guess, even when it takes many guesses. What error did Adam most likely make, and how should it be fixed?
Computers and Technology
1 answer:
EastWind [94]3 years ago
5 0

Adam might have forgotten to loop the guessing code, meaning that instead of letting him guess multiple times, it simply does it once and ends the program. This could be fixed by adding a while loop, or something of the sort, that doesn't let the user finish the program until they guess the number correctly, while adding to the variable that stores the number of guesses each loop.

You might be interested in
Q: The first step to format your spreadsheet data is to _____
Semmy [17]
Add your headings in the row of cells at the top of the sheet
6 0
2 years ago
Complete the sentences describing a computer innovation.
dolphi86 [110]

Answer:

Collaboration

4 0
3 years ago
Write a program to calculate the volume of a cylinder​
kvv77 [185]
Bro mark me brainliest i’m struggling with algebra 2 rn
5 0
3 years ago
Read 2 more answers
What is the name of database of viruses that an antivirus software scan for?
Andrew [12]

Answer:

Anti virus scanner. i hope :)

Explanation:

7 0
3 years ago
In windows 10, where would you save the template so it is available in the available templates list in backstage view?.
wolverine [178]

Answer:

got to \Username\Documents\CustomOfficeTemplates

Explanation:

6 0
3 years ago
Other questions:
  • What is the output of this code? import java.util.HashSet; class A { public static void main(String[ ] args) { HashSet set = new
    15·1 answer
  • How can social media be used to find out about activities?
    5·2 answers
  • Cartoon Disney question: Snow White asks the dwarfs a question. 2 of them are lying and 3 can only say the truth. The continuati
    10·1 answer
  • Given a UNIX file system with 1024-byte blocks, how many disk accesses are needed to access bytes 2500-2503 of a file (assume th
    12·1 answer
  • A remediation liaison makes sure all personnel are aware of and comply with an organization's policies.
    9·1 answer
  • The Fourth Amendment does not allow police to randomly test people for drunk driving. True or False
    14·1 answer
  • after landing, you are tying down the aircraft when a person approaches and asks: "faa. are you the pilot of this aircraft?" wha
    11·1 answer
  • Write a summary on the video "Greatest Inventions w/Bill Nye".
    10·1 answer
  • Python Coding:
    15·1 answer
  • HELP ME PLEASE 41 PTS
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!