View Single Post
  #26 (permalink)  
Old 05-09-2008, 02:37 AM
Bascotie Bascotie is offline
Member
 
Join Date: Apr 2008
Posts: 77
Bascotie is on a distinguished road
Again just to make things clear, here are my professors complete instructions (minus the couple pictures) on what we must accomplish:

1. You are to write a simple program with two classes. One controller class and a
class to hold your object definition. (Similar to what we used in class)

2. Use a package in your project, the package name should be xxxprojectname. xxx
is your initials taken from the first three characters of your Cal Poly email
address.

3. Read in the following from the JOptionPane input window, All data to be entered
in one line separated by spaces. After the information is read use the
StringTokenizer to break it into variables:
a. Name of customer (example: Homer Simpson)
b. Customer Phone Number (example: 9093873744)
c. Number of rolls of film to be developed (example: 5)
d. Number of 4 x 6 prints to be made of each film. (example 8)

4. Number of Exposures is not entered by user instead it’s a CONSTANT value is 1
5. Make sure the following is entered correctly, use Try/Catch validation otherwise
display an error message and close the program:
a. The name of the customer is not blank
b. The phone number of the customer is not blank and doesn’t exceed 10
characters and is an integer with positive number only
c. The number of rolls is between 1 and 100 and is an positive integer
d. The number of prints can only be (1,2,8,10, 25,30,50), positive integer
6. Compute the cost for making pictures using the price of $5.19 for development of
a roll of film and the price of $0.15 per picture.

7. Use the following to perform the calculations:
a. Cost for development = number of rolls * development cost
b. Cost for printing = number of rolls * number of prints * number of
exposures * printing cost
c. Subtotal = Cost for development + Cost for printing
d. Tax = Subtotal * Tax rate
e. Total = Subtotal + Tax

8. Use a while loop to accept multiple orders from different customers and display
the order summary at the end of each order

9. Display the following summary using a JOptionPane window

This is as far as the instructions go concerning the code needed.
Reply With Quote