Question: Do it in Java plz (Eclipse Java Oxygen): We are in charge of reporting Perot Museums revenue for a day Input : age of each

Do it in Java plz (Eclipse Java Oxygen):

We are in charge of reporting Perot Museums revenue for a day

Input : age of each patron (end of input denoted by a value < 0)

There are four categories of patrons:

Age 0 through 5 : Kids no charge($0)

Age 5 through 18 : Students - $5

Age 19 through 65 : Adults - $20

Age 65 & above : Seniors - $10

Things to do :

1. Get the age of the patron

2. Determine which category that patron falls into & increase the number for that category

3. Keep doing steps 1 & 2 until the end of input is reached

4. Once end of input is reached

Calculate the revenue generated for each category (number of patrons in a category * rate for that category)

Total revenue for the day (sum of revenues of all 4 categories)

5. Generate output in the following format

Perot Museum : Todays Revenue

Number of kids : *****

Revenue from kids : $0

Number of students : ****

Revenue from students : $****

Number of adults : ****

Revenue from adults : $****

Number of seniors : ****

Revenue from seniors : $****

Total Revenue : $****

Total # of patrons served today : ****

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets break down the solution to solve the problem stepbystep in Java using the Eclipse IDE Initializ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!