CIS 632Spring, 2008

March 7, 2008

Additional Notes on HW 7

  1. Incorporate the following additions to HW 7:
  1. For MealsRSMIDlet:
  2. Have a welcoming, initial screen (don’t forget your name in the title). Have an exit command and a command with label “Create RS”. When user activates that command, create the MealsRS, in a background thread, and have a gauge occupying the screen while RS activity occurs in the background.
  3. When the thread terminates, show a screen (with a “Back” button) that either identifies a problem that prevented the RS from being created; or, in the case of successful RS creation, displays the following info:
  4. Number of records added to MealsRS
  5. Number of records in the record store, MealsRS
  6. The size of the record store, MealsRS
  7. The version of MealsRS
  8. The date the MealsRS was last modified (showing month, day, year and time)
  1. For MobileMealsMIDlet:

Suppose the user has chosen “Catalog of AAA Products” and has tapped the “Submit” button to order item(s).

  1. When user chooses “Order a Mobile Meal” on the mainForm, orderForm is displayed. On the orderForm that is displayed incorporate the following:
  2. Instead of a MULTIPLE ChoiceGroup, have 5 TextFields, each with a label that is one of the 5 mobile meals available. Instruct the user to enter in a quantity for the number of each meal they want to order. Have a command with label “Done” that, when activated, will cause the display, in a Form, ofthe names, quantities and images of all meals ordered. On this Form, have the “Back” button to allow the user to get back to orderForm.
  3. You can ELIMINATEthe TextField in which a user can type in a meal they want that is not found in the list of 5. Thus, you can also eliminate the “Order” button and the background thread that is checking with the chef.
  4. As per the HW 7 Handout, retain the “Exit”, “Continue” and “Submit” commands.
  5. Only add a customer record to CustRS if that customer is not already in the store. If there is a customer record in the store with the same name as the user, do NOT add another customer record for that customer, print a message to the console that a duplicate customer cannot be added, and throw a user-defined exception named “Duplicate Customer”.
  1. If a customer record has been added successfully to CustRS display the following info on a the console (include labels to describe the numeric values):
  2. Number of records added to CustRS
  3. Number of records in the record store, CustRS
  4. The size of the record store, CustRS
  5. The version of CustRS
  1. If an order record has been added successfully to OrderRS, display the following info on the console (include labels to describe the numeric values):
  2. Number of records added to OrderRS
  3. Number of records in the record store, OrderRS
  4. The size of the record store, OrderRS
  5. The version of OrderRS

.