Write calendar application which allows user to select date

Assignment Help Programming Languages
Reference no: EM13810616

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 entryacross 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.

Reference no: EM13810616

Questions Cloud

Create advantages and efficiencies for an enterprise : Discuss how server virtualization, architecture, and Hyper-V can create advantages and efficiencies for an enterprise, including considerations for how to decide what an enterprise should factor in when calculating Return on Investment (ROI) befor..
Discuss the benefit of effective project closure : Discuss the benefit of effective project closure using examples to support your answer. Recommend two (2) best practices concerning project closure that would apply to almost any project.
A local motorcycle dealer''s newspaper advertisement : Leota Sage saw a local motorcycle dealer's newspaper advertisement offering a MetroRider EZ electric scooter for $1, 699. When she went to the dealership, however, she learned that the EZ model had been sold out. The salesperson told Sage the he stil..
What are the annual carrying costs of post card inventory : Post Card Depot, an large retailer of post cards, orders 3,361,530 post cards per year from its manufacturer. Post Card Depot plans on ordering post card 19 times over the next year. What are the annual carrying costs of post card inventory
Write calendar application which allows user to select date : 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 p..
Study of the frequency of these health conditions per capita : In the early part of the first decade of the 2000s, residents of Lake Caliopa, Minnesota, began noticing an unusually high number of lung ailments among their population. A group of concerned local citizens pooled their resources and commissioned a s..
Contrast in detail the national constitutional government : Compare and contrast in detail the national constitutional government with the state constitutions. Characterize the issues that account for the differences in state and local politics.
Discuss the legal implications of being a patient advocate : Discuss the legal implications of being a patient advocate
How are governmental mega projects procured : 1. Why are organizations buying more professional services? 2. How are governmental mega projects procured?

Reviews

Write a Review

Programming Languages Questions & Answers

  Build your own maze

Build your own maze and make it so easy so i can understand it. try to use for while statement. it is an easy task so please do not make it complicated and follow the instructions that im going to post. another thing do not use the maze that in th..

  Weekly demand for motorola cell phones at a retail store is

weekly demand for motorola cell phones at a retail store is normally distributed with a mean of 300 and a standard

  Travelling salesman problem

Travelling Salesman Problem on the L1-metric plane.

  Framework of the program

Write a program to read in up to 100 positive real values from a data file that everyone will name "p4data.dat" , output them in ascending order , calculate and print the average , the median , the variance , and the standard deviation . The..

  Html5 assignment i need an assignment for html5 containing

i need an assignment for html5 containing 2 parts1 3 pages html5 website2 report more important than the website

  Describe issues-web site designers when adding multimedia

Describe some of the issues web site designers must consider when adding multimedia to a web site. Consider issues such as bandwidth, server load, or others you consider to be important. Please provide references.

  Store the new generated polynomial

The program should store the new generated polynomial (to be further used in other operations),

  Using unix extract the various ethnic populations in file

Using Unix extract the various ethnic populations in your file.

  How prospectors get through mine shaft only fifteen minutes

How can all four prospectors get through mine shaft in only 15 minutes? After you have solved this problem, describe how you got your foot in door.

  Program read data from input file and select specified items

Program should be able to read data from input file and select the specified items. Write data for school-age males to file male.out and data for school-age females to female.out.

  Program to assign new value to first element of array

Suppose that the ArrayList of integers named has been declared and initialized. Write single statement which assigns a new value to first element of the ArrayList.

  How does it differ from the implementation of the class?

what is the public interface of the counter class in section instance variables and encapsulation?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd