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
Energy vampire devices can draw power even when they are turned off or in standby mode?
just olya [345]
Yes that is correct.
3 0
3 years ago
A technician is trouble-shooting an IDE hard drive that is emitting a humming sound. They suspect a faulty connector. Which of t
IRINA_888 [86]

Answer:

IDE hard drives <em>(Integrated Drive Electronics)</em> aka <em>(PATA) </em>or <em>"Parallel ATA"</em> <em>(Advanced Technology Attachment)</em>, were the previous standard before SATA which are faster; IDE drives are disposed with 41 to 44 pins, and they normally use 5V; although to certain extent small laptop 2.5" drives need only 5V, some of them also need 12V; and 3.5" drives require 12V plus 5V for the motor and logic.

Thereby the most suitable answers are <em>B.)</em> &<em> E.)</em> ,

5V and 12V respectively.

5 0
4 years ago
9.4 Code Practice
stepladder [879]

I've included my code in the picture below. Best of luck.

6 0
3 years ago
What are two items that are visible from the Month view?
Marta_Voda [28]

Answer:You can do this by clicking and holding down your mouse button an a day in the Date Navigator (small calendar on the side). Then drag your mouse over the days which you want to select. When your selection spans more than a week, you're selected weeks will be shown in the Month view.

Explanation:

You can do this by clicking and holding down your mouse button an a day in the Date Navigator (small calendar on the side). Then drag your mouse over the days which you want to select. When your selection spans more than a week, you're selected weeks will be shown in the Month view.

4 0
3 years ago
A user clicks. such as option buttons and check boxes in a dialog box to provide information
r-ruslan [8.4K]

Answer:

It's an <em>input</em>,

8 0
3 years ago
Other questions:
  • What does raster graphic mean
    5·1 answer
  • Integrated circuits are made up of _____ and carry an electrical current
    14·1 answer
  • What portable computing devices, designed for user convenience, have a sensor called an accelerometer that senses vibrations and
    10·1 answer
  • Describe at least three virus scanning techniques
    13·1 answer
  • How does a Cloud-first strategy approach a client's migration to the Cloud?
    11·1 answer
  • I will give Brainliest and Extra points for correct answers!!!
    13·2 answers
  • Rewrite the following condition to avoid a possible arithmetic exception:
    9·1 answer
  • Which sensitivity level is not a default available in Outlook 2016?
    9·2 answers
  • Which type of protocol allows for a secure data transmission using encryption methods?
    7·1 answer
  • I am in class 7 should I go with java or python.​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!