Question: You'll have to use this code import java.text.NumberFormat; public class PartyTest { public static void main(String[] args) { NumberFormat f = NumberFormat.getCurrencyInstance(); PartyVenue ballroom =
![{ public static void main(String[] args) { NumberFormat f = NumberFormat.getCurrencyInstance(); PartyVenue](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2d6dec0997_75066f2d6de4fd2e.jpg)
Party Planning A friend of yours has just opened her own party-planning company. She has asked you to write software to help manage her new business. You have decided to begin by writing three classes, named: - PartyVenue - Party, and - ChildBirthdayParty. A PartyVenue represents a location where a party might be held. For each party venue, we need to record: 1. a textual description of the location (e.g. "Queen Anne Hotel Main Ballroom"); and 2. the rental rate per hour (e.g. 125.50) Accessor methods should be provided to retrieve this information when required. Also, your class should provide support for changing the rental rate. Each Party must have: 1. a date (stored as a String, for example "20/12/2009"); 2. a start time (stored as a String, for example 7:00 p.m."): 3. an estimated duration in hours (e.g. 5); 4. a PartyVenue; and 5. the number of guests who have been invited. In addition to the venue rental fee, the party-planning company also charges additional fees (to cover the cost of food, decorations, and the planner's fime). The party-planning company's rates are as follows: For each party, we need appropriate methods to be able to retrieve the following: - date; - start time; - duration; - venue description; - number of guests; - the total venue rental fee (for the full duration of the party); and - the total cost of the party, which includes both the venue rental fee and the partyplanning company's fees. Your friend has noted that her company handles children's birthday parties a bit differently than other parties. She says that all of the information stored in the Party class is still important. However, for a ChildBirthdayParty she must also record: 1. the name of the guest of honour (e.g. "Bobby Smith"); 2. the child's age (e.g. 6); and 3. a theme (e.g. "Cowboy" or "Under the Sea")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
