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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:40, pnhandley01
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i. e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
image
Computers and Technology, 23.06.2019 07:00, schvox
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
image
Computers and Technology, 24.06.2019 15:00, cooljariel11
What questions about an audience should be asked during presentation preparation? check all that apply. what does the audience already know about the topic? how will multimedia tools inspire the audience? is the information interesting and engaging? how will this information affect the presentation? will the audience change the message’s purpose? what is likely to interest the audience?
Answers: 3
You know the right answer?
Using your event and trapscalendar classes, write a widgetviewer program that will allow sophie, sal...

Questions in other subjects:

Konu
Mathematics, 25.11.2020 14:00
Konu
Mathematics, 25.11.2020 14:00