2.7.4: Roller Coaster 1 - public class RollerCoaster extends ConsoleProgram { 2 3 }


use java


2.7.4: Roller Coaster<br>1 - public class RollerCoaster extends ConsoleProgram {<br>2<br>3 }<br>

Extracted text: 2.7.4: Roller Coaster 1 - public class RollerCoaster extends ConsoleProgram { 2 3 }
Get user input as a boolean and store it in the variable tallEnough .<br>Also, get user input as a boolean and store it in the variable oldEnough .<br>Then, use the two boolean variables to decide whether the user is able to ride<br>the rollercoaster. The only time the user can ride the rollercoaster is if the<br>responses to both answers is true. Use a logical operator to decide whether<br>the user is eligible to ride.<br>Print true or false depending on whether the user can or can't ride the<br>rollercoaster.<br>

Extracted text: 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 variable 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.

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here