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
To apply the rule of thirds you first? PLZ HURRY AND ANSWER THIS
Deffense [45]
B/ Divide the viewpoint into three equal vertical divisions
5 0
3 years ago
Read 2 more answers
What is word processing and word wrap?
damaskus [11]
MARK ME BRAINLIEST


1. Sometimes referred to as a run around, word wrap is a feature in text editors and word processors that moves to the next line when reaching the end without requiring you to press Enter. For example, in the picture below you can see as each section is shrunk the sentence is wrapped, so it does not extend past the border. You can see a live example of how text wraps by resizing the browser window on this page.

2. word proc·ess·ing

the production, storage, and manipulation of text on a computer or word processor.

8 0
3 years ago
A car holds 16 gallons of gasoline and can travel 312 miles before refueling. Write aC++ program that calculates the number of m
IgorC [24]

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

   // variables Declaration and initialization

   int no_gallon=16;

   int dis=312;

   // find the miles per gallon

   double mile_gallon=dis/double(no_gallon);

   // print the results

   cout<<"number of gallons: "<<no_gallon<<endl;

   cout<<"distance travel before refueling: "<<dis<<endl;

   cout<<"miles per gallon is: "<<mile_gallon<<endl;

return 0;

}

Explanation:

Declare and initialize the number of gallon and distance travel without refueling. Calculate the miles per gallon by dividing distance with number of gallons.Then print the results.

Output:

number of gallons: 16

distance travel before refueling: 312

miles per gallon is: 19.5

6 0
3 years ago
Pick 2 different operating systems and discuss how they can be used in daily operations.
Scilla [17]

Two different Operating Systems are

Windows 7

LINUX

Explanation:

  • Windows is an Operating System which was released by Microsoft to be used on Personal Computers.
  • They are used to manage software and perform various tasks.
  • LINUX is another type of operating system that is used on Super computers
  • Linux has been used in homes and organisation desktops in a great number.
  • It is used for great number of computing embedded tasks.
6 0
3 years ago
Suppose you're trying to remove the clamp from a ground strap that's connected to a battery. The clamp won't come loose. Which o
Mekhanik [1.2K]
The answer would be B.
5 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program that allows a user to input words at the command line. Your program should stop accepting words when the user en
    10·1 answer
  • What is the slide sorter view used for?
    11·1 answer
  • In order to achieve a win-win solution, all parties involved should negotiate a solution. True or False ?
    13·2 answers
  • Mr. Olgesandravich is proctoring students working at their own pace in an online class. He is generating a spreadsheet that show
    15·1 answer
  • Jennifer recently bought a new computer to type a new manuscript she’s been working on. She also stored a lot of movies on it to
    10·1 answer
  • To execute a prepared SQL statement, you can use the ________________ and execute() methods of the PDOStatement object to set pa
    10·1 answer
  • What is the most common concern with using variable frequency drives?
    6·1 answer
  • What feature should be used before a document is printed
    8·1 answer
  • Two girls were born to the same mother, on the same day, at the same time, in the same month and the same year and yet they're n
    7·1 answer
  • (Comparable interface) Write Rectangle class that implements the Comparable interface. Override the equals method so that two Re
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!