Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve by netbeans Exercise 1: Exercise 3: 1. Create a class Date, and it should has day (type is int), month (type is int) and

Solve by netbeans

image text in transcribed
Exercise 1: Exercise 3: 1. Create a class Date, and it should has day (type is int), month (type is int) and year (type is int). 1. Create meeting array meeting Array of size 5 2. Create a class Time, and it should has hour (type is int), and minute (type int). 2. Set meetingArray[0], meetingArray[1] and meetingArray[2] for a specific date in a specific place, and 3. Date and Time classes most have getter methods. with a specific topic. Take your input from the user using Scanner. 4. Date and Time classes most have setter method, and call it setAll. This method has to check the 3. Display all created meetings using Loop. attributes validity, and set values to 1 in case of invalid values. 4. Display the number of meetings created. 5. Date and Time constructors has to check the attributes validity, and set values to 1 in case of invalid 5. Repeat step 3 and 4, but save it in an output file. Call it "meetingdata.txt". values. 6. Write a class Meeting. The Meeting has mDate (type is Date), mTime (type is Time), mPlace (type is Exercise 4: String), and mTopic (type is String). The Meeting class has a static attribute, numberOfMeetings, to keep track of the number of meetings created. In the same package, create a JFrame to handle the Graphical User Interface (GUI) for creating a new meeting A. Add setAll method. They must NOT update the numberOfMeetings. The application should have: (Assume the application can handle up to 200 meetings) B. Add getters to the class. The getters must return only variable attributes, not objects. 1. Two text fields to read the meeting topic and location. C. Add a default constructor and initialization constructor. They have to update the Two combo boxes to read the time: a. Hours: 8 to 20 numberOfMeetings. b. Minutes: 00, 15, 30 or 45 D. Add a toString method to Meeting class ONLY. 3. Three combo boxes to read the date: E. Every time a meeting object is created, the number of meetings is incremented (use a static a. Days: 1 to 31 method to increment the static data member numberOfMeetings). Months: 1 to 12 c. Years: 2019 - 2022 Exercise 2: 4. Add button: Adds the meeting details to meeting array. Test The Meeting class by: Clears the field for next meeting. C. Update the number of meetings displayed by "Save" button. 1. Create meeting1 on 11/2/2019, at 13:30, in room 1011, for College meeting. 5. Save button: 2. Create meeting2 on 40/1/2020, at 25:00, in room 2022, for Project presentation. a. Save the content of the meeting array to file. 3. Create meeting3 on 10/2/2019, at 13:00, in room 3033, for College meeting 2. 4. Print meeting 1, meeting2, and meeting3. Meeting Manager Change meeting2 on 4/1/2020, at 23:00, in room 2022, for Project presentation. Topic: 6. Print meeting 1, meeting2, and meeting3. 7. Place a comment at the end of your program explaining your obeervation. Location: Time: 8 : 00 Date: 1 - 1 - 2019 ADD Save (0 Meetings) Bonus: be creative and enhance your application

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 Programming questions

Question

=+10 What are six problems in the conduct of monetary policy?

Answered: 1 week ago