Computers and Technology, 25.12.2019 20:31 mgavyn1052
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;
}
}
Answers: 3
Computers and Technology, 21.06.2019 19:00
Jill wants to become a network professional. which certification would be useful for her? a. mcse b. pmp c. comptia a+ d. ccie
Answers: 2
Computers and Technology, 21.06.2019 22:00
Which one of the following would administrators use to connect to a remote server securely for administration? a. telnetb. secure file transfer protocol (sftp)c. secure copy (scp)d. secure shell (ssh)
Answers: 1
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
Using your event and trapscalendar classes, write a widgetviewer program that will allow sophie, sal...
Mathematics, 20.10.2020 01:01
English, 20.10.2020 01:01
Mathematics, 20.10.2020 01:01
Mathematics, 20.10.2020 01:01
Social Studies, 20.10.2020 01:01
Computers and Technology, 20.10.2020 01:01
English, 20.10.2020 01:01
English, 20.10.2020 01:01
English, 20.10.2020 01:01
Mathematics, 20.10.2020 01:01
History, 20.10.2020 01:01