Write a java program that calculates the total order for a


Objective:
To demonstrate the use of classes and objects in GUI-based Java program.

Required:

Write a Java program that calculates the total order for a customer. The order should include the details of buying several products. For each product (item), there should be a product code, product price, product description, and product icon. The products should be implemented as objects of predefined classes and designed as a Product Hierarchy. The list of products and their details should include a minimum of 5 products saved on an external text file and read by your program.

To illustrate the concept of separating the model from its presentation, at the command line, the user can indicate to use a GUI or use the traditional console. Your program should support all the functionalities and user interaction in either case.

The customer will buy products through the use of a GUI (Swing) or using the console. Customers need to enter a customer ID. First and last names will be read from a file, displayed on the UI including the total and date of their last transaction, as well as the product catalog. Customers can buy more than one of the same product by entering the quantity of each product. Your invoice should display the customer name, the details of the order, and the total price of the entire order, and the sub-total for each line item. The customer can
save the invoice as a separate file.

Every time a customer purchases 10 or more of the same item, a 10% discount will be applied for that item. The customer should be prompted for the payment method. The options are full payment or with installments. If the customer selects full payment, a 5% discount will be applied to the total. Sales tax of 6% should be added to the entire order.

Format your output, include comments, use proper naming conventions, use proper indentation, validate the data, and apply the Java OO programming concepts that we have learned in class so far. Submit a soft copy of the program (*.java file), with a hard copy of the Program and a sample output. Your name should be on all documents submitted. Include the Honor Code on the main file.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a java program that calculates the total order for a
Reference No:- TGS0650520

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)