Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Management Process

Authors: Lee Long

4th Edition

978-0201822939,0201822938

Students also viewed these Databases questions

Question

List total sales for each publisher in SQL table

Answered: 1 week ago