Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Requirements: Eventful is a web site which aims to help users search for, track, and share information about events. - We consider the class Event

Requirements: Eventful is a web site which aims to help users search for, track, and share information about events. - We consider the class Event as implemented below. Finish the implementation of the SponsoredEvent class knowing that a sponsored event is an event that has the sponsors name and a budget. - Consider the Class EventCollection that represents a collection of events and sponsored events: o The data structure used should be an ArrayList and should be declared and initialized properly. o The removeEvent() and editEvent() behaviors should be implemented properly. You should be able to remove an event using the title (we can assume that the title is unique). You should be able to edit the title and the location of the event. o The sort () should work properly. You should be able to sort events based on the date (day and month) to know which event starts first. Implement the correct comparator. o The toString() should be implemented properly using an iterator and should print (when called) all the events in the collection.

2 - Create the EventAttendance class to keep track of the number of attendance in each event. o The class should have a map to store the number of attendance. o The class should have two main methods, in addition to the constructor: UpdateMap(Event e) (updates the attendance of the input event) and DispalyMap() (displays the events along with their number of attendances). These methods should work properly. - Bonus: Create a class DisplayEventsPanel that defines a model and creates a JList view and attaches the model to it. Add elements from a collection EventCollection to the model using an Iterator.

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

Students also viewed these Databases questions