subject

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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Analyze the following code. int x = 1; while (0 < x) & & (x < 100) system.out.println(x++); a. the loop runs forever. b. the code does not compile because the loop body is not in the braces. c. the code does not compile because (0 < x) & & (x < 100) is not enclosed in a pair of parentheses. d. the numbers 1 to 99 are displayed. e. the numbers 2 to 100 are displayed.
Answers: 3
question
Computers and Technology, 22.06.2019 04:00
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
You know the right answer?
adam is writing a program that: 1) has the user guess a number, and 2) tells the user how many guess...
Questions
question
English, 08.11.2020 19:20
question
Computers and Technology, 08.11.2020 19:20
question
Mathematics, 08.11.2020 19:20
question
Mathematics, 08.11.2020 19:20
question
Mathematics, 08.11.2020 19:20
question
Mathematics, 08.11.2020 19:20
question
English, 08.11.2020 19:20
question
Health, 08.11.2020 19:20
question
Mathematics, 08.11.2020 19:20
Questions on the website: 13722361