Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The program is to ask the an age and a weight (in pounds) for the person about to ride the roller coaster. Extra credit if

The program is to ask the an age and a weight (in pounds) for the person about to ride the roller coaster. Extra credit if you do sophisticated error checking, like checking for negative numbers, or input that's not a number. If a person is younger than or equal to 10 years old and weights less than 80 pounds print the following: This person needs to ride the black roller coaster. If a person is younger than or equal to 10 years old and weights between 80 and 200 pounds (including weighing exactly 80 or 200 pounds), print the following: This person needs to ride the green roller coaster. If a person is younger than or equal to 10 years old and weights more than 200 pounds, print the following: This person needs to ride the yellow roller coaster. If a person is younger than or equal to 20 years old but older than 10 and weights less than 80 pounds, print the following: This person needs to ride the silver roller coaster. If a person is younger than or equal to 20 years old but older than 10 and weights between 80 and 200 pounds (including weighting exactly 80 or 200 pounds), print This person needs to ride the red roller coaster. if a person is younger than or equal to 20 years old but older than 10 and weights more than 200 pounds, print: This person needs to ride the purple roller coaster. Everyone else rides the pink roller coaster, print:This person needs to ride the pink roller coaster. Please create a brand new Java Project and Package.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is a subquery, and what are its basic characteristics?

Answered: 1 week ago

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago

Question

The company openly shares plans and information with employees.

Answered: 1 week ago