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, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Do you think media is stereotype ? and why?
Answers: 1
You know the right answer?
Using your event and trapscalendar classes, write a widgetviewer program that will allow sophie, sal...
Questions
question
Arts, 13.01.2021 01:00
question
Mathematics, 13.01.2021 01:00
question
Mathematics, 13.01.2021 01:00
Questions on the website: 13722361