subject

Using your event and trapscalendar classes, write a widgetviewer program that will allow sophie, sally and jack to schedule and maintain the events that their event organizing business will sponsor. this document will describe the minimum expected function for a grade of 90. your mission is to "go and do better." the meaning of "better" is largely up to you. find something that stinks about the program as described here (that shouldn’t be hard), and fix it.

objectives

by the end of this project the student will be able to:

write a widget viewer program that maintains a calendar of events.
display events in the order they were entered into the program.
allow the user to select different views of the collection of events, such as sorting by the name or date.
write a program consisting of multiple classes and multiple objects based on those classes.
demonstrate the ability to segregate business logic from user interface.
demonstrate the ability to catch user events, write event handlers, listen for events, and process events.
manage a collection of event objects.
grading elements

your program should:

follow your instructor’s rules and conventions for code quality, conventions and submission
be a widgetviewer program that allows gui control of the event and calendar information
use event handlers to indicate a user clicking a button to add an event to the calendar or changing the user’s view of the calendar
allow a user to add events of a given name, venue, date, etc to the calendar
be implemented as multiple classes with multiple instances of some classes
segregate the management of events to a calendar object
the event and calendar classes are not concerned with user interface
the user interface code is not concerned with managing or sorting events within the calendar
display the calendar’s events in the order that the events were entered, sorted by name, and sorted by
improve the described program
event class



trapcalendar class -

import java. util. arraylist;
public class trapscalendar {
private arraylist calendar;
public trapscalendar() {
calendar = new arraylist();
}
public boolean add(event evt) {
return calendar. add(evt);
}
public event get(int i) {
if (i < 0 || i > calendar. {
return null;
}
return calendar. get(i);
}
public event get(java. lang. string name) {
for (int i = 0; i < calendar. size(); i++) {
if (calendar. get(i).(name)) {
return calendar. get(i);
}
}
return null;
}
public int size() {
return calendar. size();
}
public java. util. arraylist list() {
return calendar;
}
public java. lang. string tostring() {
string data = "there are a total of " + calendar. size()
+ " events on the calendar";
if (calendar. size() > 0) {
data += " and their names are ";
}
for (int i = 0; i < calendar. size(); i++) {
data += "\n" + calendar. get(i).geteventname();
}
return data;
}
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
What is added to the < meta > tag to describe the encoding type?
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
You know the right answer?
Using your event and trapscalendar classes, write a widgetviewer program that will allow sophie, sal...
Questions
question
English, 17.07.2021 14:00
question
History, 17.07.2021 14:00
question
English, 17.07.2021 14:00
question
Biology, 17.07.2021 14:00
Questions on the website: 13722362