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]
3 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]3 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
If an engine has four cylinders and a total of 16 valves, how many valves would each cylinder have?
wel
4 because 4 x 4=16. Easy. I like to think of it as multiplication.
4 0
3 years ago
To quickly save a file, use the keyboard shortcut ________. ctrtl shift s ctrl s ctrl a ctrl shift-a
Advocard [28]
You have to use control + s only. but if you want to save it in different format, use control + shift + S
3 0
2 years ago
Which criterion can be used to select the appropriate type of network media for a network?
OverLord2011 [107]

There are various kinds of network media and each one of them has different features and benefits. Some have different characteristics and not all of them are meant to perform the same purpose. While choosing network media, a number of criteria must be met. These criteria include:

The distance the selected medium can successfully carry a signal.

The environment where the selected medium is to be installed

Explanation:

The distance the selected medium can successfully carry a signal – The type of network media you choose depends on the distance it can cover before you install signal boosters or repeaters. Repeaters are used to regenerate signals that are required to cover greater distances. A UTP cable as compared to fiber is more prone to interference like noise and the distance it covers before a signal repeater is installed is shorter. Fiber cable is considered the best for distances as it can cover longer distances.

Environment should also be considered when choosing network media - If your network is setup in a place where there is too much electromagnetic field being generated, then you may be required to purchase fiber optic cables. Fiber optics are immune to such interference.

Learn about network media

brainly.com/question/9279069

#LearnWithBrainly

3 0
3 years ago
Create a trigger that prevents anychange(insert, update, or delete)to the grade attribute of the takesrelation that would change
Dmitriy789 [7]
Omg co ol like chicken is funny sometimes
6 0
3 years ago
True or False
NISA [10]

Answer: The answer would be True

3 0
3 years ago
Other questions:
  • Richman Investments is an investment and consulting firm. Richman wants to expand its business operations both in the U.S. and i
    14·1 answer
  • HIPAA protects which of the following kinds of data?
    11·2 answers
  • A(n) ____________________ or cryptosystem is an encryption method or process encompassing the algorithm, key(s) or cryptovariabl
    11·1 answer
  • What country is now the number one source of attack traffic?
    5·1 answer
  • Describe an ergonomic consideration for your body while working for long periods in front of a monitor or computer screen?
    14·1 answer
  • What should be included in the closing portion of your letter or e-mail?
    12·2 answers
  • Charlie does not think he will be able to finish his project by the deadline at this point in the decision making progress to so
    13·1 answer
  • I have a question. This question will probably be deleted, but why do moderators keep deleting my answers when they are legitima
    13·1 answer
  • So I try to login into my origin account and this popped up.(photo). But everytime I try to type in something I’m unable to clic
    15·1 answer
  • How do I type over Images (photo posted ​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!