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
kifflom [539]
4 years ago
6

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:
topjm [15]4 years ago
8 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
Alcohol first impairs your ____?
NemiM [27]
Alcohol first impairs your judgement 
5 0
3 years ago
Read 2 more answers
Groupthink refers toA) the willingness of individual group members to withhold contrary or unpopular opinions, even when those o
Ivan

Answer:

The correct answer is A.

Explanation:

Groupthink is a theory that is applied to decision making psychology in groups, developed by Irving Janis. The theory roots itself to the problem of conformity especially in group settings. When a decision is made in a group, some members, even though they believe that the decision made is wrong or can be better, get caught up in the conformity problem and follow the accepted solution to allign with the group's decision.

I hope this answer helps.

5 0
3 years ago
Please help
zvonat [6]

Answer:

First check the if the adapters on the router or site are connected (Ipconfig)

Next run a flush Dns to clear the sites dns logs (ipconfig/flushdns)

If non of that works you would run a restart on the server that is transfering data through the site.

If that doesn't work you will have to call a tech support from another company or your boss to tell him that there is nothing you can do and to ask for help!

Explanation:

Hopefully this helps! BTW I'm 13 so I wouldn't rely on my information that is personal what I would do though.

6 0
3 years ago
Write a for loop that will print the values 1 to 20 while skipping the odd numbers (2,4,6,8,10,12,14,16,18,20):
DochEvi [55]

<u>Answer:</u>

<em>void main ( )  </em>

<em> {  </em>

<em> int counter;  </em>

<em>  cout<<""Even numbers between 1 to 20 are:""<<endl ;  </em>

<em> //Method 1 </em>

<em>  for (counter = 1; counter <= 20; counter++)  </em>

<em>  {  </em>

<em>    if ( counter%2 == 0)  </em>

<em>   {   </em>

<em>     cout<<counter<<""\t""<<endl ;  </em>

<em>   }  </em>

<em>  }  </em>

<em>//Method 2 – simplest one </em>

<em>for (counter = 2; counter <= 20;)  </em>

<em>  {  </em>

<em>     cout<<counter<<""\t""<<endl ;  </em>

<em>counter = counter + 2; </em>

<em>    </em>

<em>  } </em>

<em> </em>

<em>  return 0;  </em>

<em>} </em>

<u>Explanation:</u>

In this, Method 1 runs a for loop and check whether each number is divided by 2. If yes, then printed otherwise it is skipped.

In the second method, it runs for loop only for even numbers. <em>This is obtained by incrementing the counter by 2. </em>

6 0
3 years ago
A client is attempting to access a secure Wi-Fi network. To be successful, which action would the client need to do
solniwko [45]
Secure WiFi used passwords, so the client needs to have the correct password
7 0
2 years ago
Other questions:
  • A cashier distributes change using the maximum number of five-dollar bills, followed by one-dollar bills. Write a single stateme
    13·1 answer
  • In the United States, everyone is guaranteed work true or false
    13·1 answer
  • What are the programs required to work in computer
    7·1 answer
  • What is the term given to the controls that let you interact with an operating system?
    11·1 answer
  • How would you declare an interface named Sports that has the following (show them in your answer as well): A method called jump
    5·1 answer
  • Which of the following is NOT areserved word in Java?intpublicstaticnum
    9·1 answer
  • REM Its an exam program
    12·1 answer
  • Who is primarily responsible for ensuring cybersecurity in society? Select 3 options.
    15·1 answer
  • Display the desktop without minimizing or closing any windows.
    6·1 answer
  • A ________________ is a special type of array that implements a last-in, first-out collection of values.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!