Write java program that calculates total order for customer

Assignment Help JAVA Programming
Reference no: EM13311837

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.

Reference no: EM13311837

Questions Cloud

Explain solution of koh to the original sulfide precipitate : Decribe how adding a solution of KOH to the original sulfide precipitate results in the separation of Sn4 ion from the other group II cations.
Choose one phase from the systems development life cycle : Choose one phase from the systems development life cycle to carry out, and present a summary of the core activities that you would undertake, with specific examples.
How far should you place the lens from the slide : A slide projector needs to create a 98 cm high image of a 2.0 cm tall slide. The screen is 300 from the slide. How far should you place the lens from the slide
Explain how many orbitals in an atom : How many orbitals in an atom can have each of the following designations? (a) 3d (b) 4f (c) 3p (d) n = 3
Write java program that calculates total order for customer : 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.
What is the smallest spacing between the plates : You press two flat pieces of glass together so that a very thin layer of air is trapped between them. What is the smallest spacing between the plates
Find the frequency of the circular motion of the electron : The radius of the hydrogen atom is 0.053 nm. What is the frequency of the circular motion of the electron in the hydrogen atom
Find the critical angle for an optical fiber : Find the critical angle for an optical fiber whose core has n value of 1.55 and whose cladding has n value of 1.20
What is the incident angle : A beam of light shoots from air into a piece of glass. If the refracted angle is half of the incident angle, what is the incident angle

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd