A water park will let a visitor on a ride if they are 48 or more inches tall OR they are 14 years old or older. WILL MARK BRAINLIEST ANSWER!


Make a flowchart for this decision. Make sure to use comparison operators ( , ==, etc. ) and logical operators (&&, ||, !) when you write your Boolean expression.

Respuesta :

Answer:

function waterPark() {

   var age = parseInt(prompt("Enter your Age: "));

   var height = parseInt(prompt("Enter your Height (in inches): "));

   if ( age >= 14 || height >= 48){

       console.log("You can ride in our park");

   } else {

        console.log("You are not eligible to ride in the park");

   }

}

waterPark( );

Explanation:

The Javascript function "waterPark" prompts users for their age and height to check if they are eligible to ride in the park. The prompt is parsed to an integer and assign respectively to the age and height variable.

The if conditional statement compares the age and height of the user to know if they are eligible to ride in the park or not.