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
I am Lyosha [343]
4 years ago
6

What value(s) can be input into this code for the value of number that will cause the code in the loop to execute? Scanner keybo

ard = new Scanner(System.in); System.out.print("Enter a number: "); int number = keyboard.nextInt(); while (number < 100 && number > 500) { System.out.print("Enter another number: "); number = keyboard.nextInt(); }
Computers and Technology
1 answer:
Marianna [84]4 years ago
5 0

Answer:

There is no value of the number variable, for which the loop can be true in any iteration.

Explanation:

  • The above loop states the condition that the value should be less than 100 and greater than 500. It is because the loop holds the and condition which gives the true if both conditions will be true.
  • The first condition of the while loop states that the value of the number variable is less than the 100.
  • The second condition of the while loop state that the value of the number variable is greater than the 500.
  • The and condition of the while loop will true if both conditions will true.
  • But there is no number which is less than 100 and greater than 500.
  • So no number can satisfy the while condition to be true.

You might be interested in
Bruce realizes he's getting a cramp in his neck after texting with his buddy for several minutes. he puts the phone down and tak
Arlecino [84]

Answer:Tech Neck

Explanation:

Tech Neck is when you are looking down to a phone for too long and you get a cramp in your neck

6 0
1 year ago
Travel agents are market intermediaries who make their living by gathering, organizing, and dispensing information about travel-
Oliga [24]

Answer:

A. Travel agents routinely use the internet and other new information technologies as sources for the information they obtain for their customers

Explanation:

These travel agents also have access to this information on the Internet  and because of it, they know the prices these airlines and hotels put up on their website and regulate their own prices, making it cheaper, so as to remain in business.

The travel agents can also gather, organise and dispense travel related information at a more affordable rate. These travel agents will access the travel and booking information from the airlines, hotels, etc and go ahead to make logistics that will make the journey easier, cheaper and more enjoyable to their customers.

The advent of travel information on the internet that is also accessed by the travel agents will not necessarily reduce the importance of the travel agents, it will merely make them offer better services because they now have a serious competitor which is ease of information on the internet.

3 0
3 years ago
A group of computers that are interconnected in order to share information or documents is called a
zaharov [31]

Answer:

computer network

Explanation:

group of computers that are interconnected in order to share information or documents.

4 0
3 years ago
What is a function in Microsoft Excel?
uranmaximum [27]

Answer:

Tool for creating charts.

Explanation:

MS excel is clearly used for designing charts and spreadsheet in our daily life.

4 0
3 years ago
Three negative impact of littering<br>​
andrew11 [14]

Answer:

planet destroyed

loss of animals

resources wasted

Explanation:

8 0
3 years ago
Other questions:
  • write a pseudo code and flow chart that take a number as input and prints multiplication table up to 10
    9·1 answer
  • Please reply only in CORAL. I am not sure how to get the numbers between the negative version and positive version of the input
    10·1 answer
  • All resources are limited. Which of the following is NOT a resource?
    11·1 answer
  • When a person devises the idea for the venture, develops a business plan, uses savings or loans to acquire other resources and a
    9·1 answer
  • When a recursive algorithm terminates its nth instance of the module call, it returns to the point in the ________ instance dire
    11·1 answer
  • Which UML relationships should be used between a subclass and a superclass? For example, suppose there is an interface or abstra
    5·1 answer
  • 1) Given what you have learned about computers and information technology thus
    6·1 answer
  • How many different textile items would you find at a festival? (please list 5 items)
    7·1 answer
  • What is the name of tool
    11·1 answer
  • Is Aerospace Engineering a more enjoyable major than Computer Engineering?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!