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
Alinara [238K]
3 years ago
8

Get user input as a boolean and store it in the variable tallEnough. Also, get user input as a boolean and store it in the varia

ble oldEnough. Then, use the two boolean variables to decide whether the user is able to ride the rollercoaster. The only time the user can ride the rollercoaster is if the responses to both answers is true. Use a logical operator to decide whether the user is eligible to ride. Print true or false depending on whether the user can or can’t ride the rollercoaster.
Computers and Technology
1 answer:
frozen [14]3 years ago
8 0

Answer:

I will code in JAVA.

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

 

boolean tallEnough;

boolean oldEnough;

Scanner input = new Scanner(System.in);

tallEnough = input.nextBoolean();<em> //wait the input for tallEnough</em>

oldEnough = input.nextBoolean(); <em>//wait the input for OldEnough</em>

   if(tallEnough && oldEnough){

   System.out.print(true);

   } else {

   System.out.print(false);

   }

}

}

Explanation:

First, to accept user inputs you have to import the class Scanner. Then declare both variables before allowing the user to set input values for both boolean variables.

In the if-else statement checks if both variables are true, then prints true. Another case prints always false.

You might be interested in
When you’re upset, you’re __ to get into a crash compared to when you’re not upset
Daniel [21]

Answer:

Your answer would be more likely.

Explanation:

When someone is upset and they are driving they usually have their music baring and the they can't hear their surroundings and all they can think about is what they are upset about so therefor they don't pay attention. Hope this helped! Have a great day! :)

7 0
3 years ago
Java Homework:(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses nam
miss Akunina [59]

Answer: Wait, so what is the question exactly..?

8 0
3 years ago
In full screen reading view the blank is reduced
aksik [14]

Answer is: Yes

<u>Explanation:</u>

Word includes a full-screen mode that minimizes the extraneous information (tools, menus, etc.) displayed on the screen. The normal way of switching to full-screen mode is to display the View tab of the ribbon and click Full Screen Reading in the Document Views group. (If you are using Word 2013 or Word 2016 click Read Mode in the Views group.) You can also click the Full Screen Reading view icon (Read Mode view icon Word 2013 and Word 2016) near the right side of the Status bar located at the bottom of the document window. You exit the mode by either clicking the Close button (upper-right corner of the screen) or by pressing Esc.

4 0
3 years ago
Your boss calls you from his home to use the VPN connection you configured for him
prisoha [69]

Its not c or b. I think it's a. Im not sure tho..

7 0
3 years ago
What happens during an Active object's animation sequence action?
RoseWind [281]

Answer:

B. The Active object's animation stops looping.

Explanation:

As the new event happens, the loop tells it to happen by stopping. And hence, B is the correct option out here. Neither A or C and Nor D is the correct option. The animation does not end here, and the next event takes place. Also, the active object's animation does not change the speeds. Hence, the correct option here is certainly the B.

4 0
3 years ago
Other questions:
  • When the tcp\ip translates a network layer address into a data link layer address (after not finding an entry for the network la
    13·1 answer
  • PLEASE HELP ASAP
    10·2 answers
  • Which of the following is *not* true about logging user and program actions on a computer?
    10·1 answer
  • ____________ refers to the computer-to-computer transmission of business data in a structured format.
    15·1 answer
  • The command-line interface tells a user that it's ready to receive commands by displaying a specific set of characters called a(
    12·1 answer
  • _____________________________________________________is a pre-designed format to help users with the creation of a document, lik
    6·1 answer
  • How can a search be narrowed to only search a particular website????
    15·1 answer
  • Encrypting text allows us to encrypt and decrypt the text using a special key.
    9·1 answer
  • Fix the code :)
    10·1 answer
  • What command do we use to enter data from the keyboard?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!