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

  Dijikstra for undirected graph using simple scheme

Dijikstra for undirected graph using simple scheme with array and fibonacci heap and compare the performance/results, preferably in java.

  Outline a test plan for a substantial real-life system

Describe how you would approach the design and testing process to ensure success and quality in the result and where are the risks? How are you going to address them?

  Write a class that reads a file

In java, write a class that reads a file and outputs a list of the unique words in the file and the number of times each unique word occurs.Hint: use a HashMap with keys being the words and values being integer counts associated with the words.

  Imagine that you have been assigned

Imagine that you have been assigned to implement a sorting program. The goal is to make this program general purpose, in that you don't want to define in advance what record or key types are used

  Document the current application describing major classes

Add to the Project Management tool the different planned activities needed to implement the changes to the solution and document the current application describing the major classes used by the application.

  Design java program to enter name in input dialog box

Design the program called MailingLabel.java Program must ask user to enter name and address in input dialog box with each component of address seperated by comma.

  Creates an array named odds

Write code that creates an array named odds and stores all odd numbers between -6 and 38 into it using a loop. Make the array's size exactly large enough to store the numbers.

  Identify the first character of the name and lengthof length

Write a Java application that stores the names of your family and friends in a one-dimensional array of Strings. The program should show all names in upper case and lower case, identify the first character of the name, and the lengths of the names.

  Write java applet for costco gas station

Write a java applet for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use: grade 87, 89, or 91.

  Display random numbers to simulate rolling a die

1. Display random numbers to simulate rolling a die2. Create a java program that simulate a casino game. (rollin a die)

  Give an example of an exception

A. Give an example of an exception that could be generated outside your code but caught within your code

  Java program to declares integer array

Write a complete Java program to declares integer array, intArray, and initialize it to {1, 2, 3, 4, 5, 6, 7}.

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