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 14:40
You begin your first day of responsibilities by examining the recent is security breach at gearup to get ideas for safeguards you will take. at gearup, criminals accessed the company's improperly-secured wireless system and stole customers' credit card information as well as employee social security numbers. what kind of computer crime did gearup face?
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
You know the right answer?
Using your event and trapscalendar classes, write a widgetviewer program that will allow sophie, sal...
Questions
question
Mathematics, 01.12.2020 20:00
question
Mathematics, 01.12.2020 20:00
question
History, 01.12.2020 20:00
question
Social Studies, 01.12.2020 20:00
question
Social Studies, 01.12.2020 20:00
question
Mathematics, 01.12.2020 20:00
Questions on the website: 13722360