Mail Order System

Good programming style:

  1. Header (Description, author’s name, date, and java version)
  2. Imports if any.
  3. Driver or tester class.
  4. The program should have a proper exit with a message.
  5. Input/output included as a paragraph comment.

The following description of this assignment can be modified to suit the requirements: it should use at least an ArrayList, it should be object-oriented, and have good programming practices. 

mail-order house sells five products whose retail prices are as follows:

Product 1, $2.98

Product 2, $4.50

Product 3, $9.98

Product 4, $4.49

Product 5, $6.87

Write a java program MailOrder_YI.java and its driver, MailOrderTest.java to prompt the user for the following after a short welcome message.

a) Product number
b) Quantity sold


It should calculate and display the total retail value of all products sold. Use a sentinel-controlled (like “yesNo”) loop to determine when the program should stop looping and display the final results.


Sample output:

Welcome to Mrs. “Elia’s Mail Order Clearing House”
Product 1, $2.98
Product 2, $4.50
Product 3, $9.98
Product 4, $4.49
Product 5, $6.87

Product number?: 1
Quantity?: 2
Do you want to continue?(yes/no): yes
Product number?: 2
Quantity?: 5
Do you want to continue?(yes/no): yes
Product number?: 3
Quantity?: 3
Do you want to continue?(yes/no): yes
Product number?: 4
Quantity?: 1
Do you want to continue?(yes/no): no
Total Price: $62

Required submission:

  1. A short video.
  2. Copy and paste both programs.
  3. Submit the zipped project.