Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

each base tour has to be it's own class and each tour extra has to be it's own class. homeWOFk 1 grade, there Is homesd

image text in transcribed

each base tour has to be it's own class and each tour extra has to be it's own class.

homeWOFk 1 grade, there Is homesd to o ts on You will turn in a zipped NetBeans project with all of your source code for this assignment. For this homework, you need to use the Decorator pattern to represent mansion tours and tour extras. There are 2 base tours, and a number of extras that can be purchased along with a base tour. The tour extras are your decorators. Each tour must have a method that returns a description of the tour (getDesciption), a method that returns the cost of the tour (getCost), and a method that returns the minimum amount of time in minutes the tour takes (getMinTimelnMinutes),. In addition, you must have a toString method that prints all of the details of your tour (description, cost, and minimum time). Details for each tour and tour extras are below. The time and cost for tour extras are in addition to the base tour time and cost. In addition to the tours and tour extras, you need a tester class (named TourTester) that creates the following three tour packages and then prints information about each package. Tour Package 1: A self-guided tour with audio guide. Tour Package 2: A guided tour that includes a rooftop tour and an estate tour. Tour Package 3: A premium guided tour that includes a glamour tour and an estate tour Base Tours Self-Guided Tour: A 90-minute self-guided tour of the mansion. Min time: 90 minutes. Cost: $55 Guided Tour: A 90-minutes guided tour of the mansion. Min time: 90 minutes. Cost $80 Tour Extras . Audio Guide: An audio guide by curators and hosts. Min time: 0 minutes. Cost $10 Rooftop Tour: A tour of rooftops and balconies. Min time: 60 minutes. Cost $25 . Estate Tour: A trolley tour of the estate grounds. Min time: 60 minutes. Cost $20 . Glamour Tour: A tour of glamorous period costumes. Min time: 90 minutes. Cost $45 . Premium Tour: A premium tour that includes many extra areas. Min time: 60 minutes. Cost $25

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

Why did both unemployment and inflation decline after 1982?

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago