CIS 632Spring, 2008
March 7, 2008
Additional Notes on HW 7
- Incorporate the following additions to HW 7:
- For MealsRSMIDlet:
- 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.
- 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:
- Number of records added to MealsRS
- Number of records in the record store, MealsRS
- The size of the record store, MealsRS
- The version of MealsRS
- The date the MealsRS was last modified (showing month, day, year and time)
- For MobileMealsMIDlet:
Suppose the user has chosen “Catalog of AAA Products” and has tapped the “Submit” button to order item(s).
- When user chooses “Order a Mobile Meal” on the mainForm, orderForm is displayed. On the orderForm that is displayed incorporate the following:
- 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.
- 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.
- As per the HW 7 Handout, retain the “Exit”, “Continue” and “Submit” commands.
- 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”.
- 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):
- Number of records added to CustRS
- Number of records in the record store, CustRS
- The size of the record store, CustRS
- The version of CustRS
- If an order record has been added successfully to OrderRS, display the following info on the console (include labels to describe the numeric values):
- Number of records added to OrderRS
- Number of records in the record store, OrderRS
- The size of the record store, OrderRS
- The version of OrderRS
.