Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program with four classes in four separate source code files. The first class is Event. Events should at a minimum have a

Write a Java program with four classes in four separate source code files.
The first class is Event. Events should at a minimum have a date, start and end time, location name, location address, event name, number of guests, point of contact, and price. You may add additional attributes.
The second class is BirthdayParty. A BirthdayParty is-a Event, but should also include appropriate attributes and methods for age, cake, candles, and decorations.
The third class is Quinceaera (you may replace the with an English n for purposes of the program). A Quinceaera is a specific type of BirthdayParty. The age should be immutably set to 15. Additional attributes will include number of damas or maids of honor, number of toasts performed, and choice of dance music.
A Quinceaera is-a BirthdayParty. A BirthdayParty is-a Event.
The fourth class is EventPlanner. EventPlanner will include a runnable main() method.
When run, the program should print out the course, assignment, date, and student name to the screen. Then prompt the user for the number of events to create. Then create an array of type Event of the length given by the user. For each item in the array, prompt the user for the event type, choosing from the three types. Accept the users responses and create an object of that type and assign it to the array.
After all user-supplied objects are created, loop through the array and print out the event planning report showing the state of each event.
All classes should demonstrate inheritance, encapsulation, have appropriate get and set methods, and have a toString() method. Child classes should override toString() and call parent constructors.
Turn in:
Program documentation as described in Project 1
Four .java source code files

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_2

Step: 3

blur-text-image_3

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 are three ways of collecting Web analytics?

Answered: 1 week ago

Question

What is Ramayana, who is its creator, why was Ramayana written?

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago

Question

Why does sin 2x + cos2x =1 ?

Answered: 1 week ago