Discount Get COMP 274 ALL WEEKS Solution ONLY $98.20 $130.93
COMP 274 Week 1 - Programming Assignment [$9.99]
COMP 274 Week 2 - Inheritance and Polymorphism [$15.99]
COMP 274 Week 3 - Programming Assignment [$16.99]
COMP 274 Week 4 - Fun with Colors [$16.99]
COMP 274 Week 5 - Paddle Ball Game [$19.99]
COMP 274 Week 6 - The Calendar Manager Program [$24.99]
COMP 274 Week 7 - JavaDoc and Jar file [$25.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
COMP274 COMP 274 COMP/274 Week 6 Lab 6 iLab 6 - The Calendar Program
    COMP274 COMP 274 COMP/274 Week 6 Lab 6 iLab 6 - The Calendar Program

COMP274 COMP 274 COMP/274 Week 6 Lab 6 iLab 6 - The Calendar Program

$24.99

COMP274

Week 6 Programming Assignment

The Calendar Program

The purpose of this lab is to give you a chance to use some of the data stream tools we have been discussing in a simple application. The assignment is to write a calendar application which allows the user to select a date, and either retrieve a previously stored calendar entry, or save a calendar entry.

 

Your program should present a GUI interface which allows the user to specify the month, day, and year of the calendar entry. The GUI should also have a text area for displaying and editing a particular entry. It will also need two buttons, one for saving an entry, and the other for retrieving an entry.

 

Required program elements:

 

  1. Your user interface must allow the user to enter the month, day, and year. You can do this using text fields for input, or you can use ComboBoxes if you feel adventurous.
  2. The only GUI components which create events that your program needs to handle are the save and retrieve buttons.
  3. Don’t go overboard making your GUI beautiful! We are just looking for basic functionality here!
  4. You must have a separate class which manages the calendar data. You will have a minimum of three classes in your application, a user interface class, the calendar manager class, and a calendar test class. The user interface class creates an instance of the calendar manager in its constructor and stores it in a member variable.
  5. The calendar manager must provide methods which support saving a specific calendar entry and retrieving a specific calendar entry. The interfaces must be defined to only pass a single day’s calendar entry across the interface.
  6. The calendar manager must store calendar data into files according to month+year. That is, the calendar entries for December 2011 must all be stored in the same file.
  7. The calendar manager must use ObjectInput/OutputStreams to read/write data from/to files. The calendar manager will use an array to store String objects. The position of a String in this array corresponds to the calendar entry for a specific day.
  8. The save method of the calendar manager will need to determine if a file exists for the requested month and year. If so, the object from that file must be read into the calendar manager. Otherwise, the calendar manager must create an empty String array. The new entry must be saved to the appropriate day’s location in the array. The modified array must be saved to the appropriate file.
  9. The retrieve method of the calendar manager will need to determine if a file exists for the requested month and year. If not, return an error string indicating that there is no such entry. If the file exists, read the String array from the file and locate the requested day’s entry. If this entry is null, return an error string indicating that there is no such entry, otherwise return the entry.

Take screen shots of the output of your program. Paste the screen shots and your source code for your programs into a Word document. Submit your Word document.

My tutorial contains Java Programs - Eclipse Project and Document.

If you have more questions, please contact me via email support@extutorials.com

I will help you any time

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B