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

  Design a boolean function named isprime,

A prime number is a number that is only evenly divisible by itself and 1. For example, the number 5 is prime because it can only be evenly divided by 1 and 5. The number 6, however, is not prime because it can be divided evenly by 1, 2, 3, and 6. Des..

  Method to calculate all primes in the range [2..n]

One commonly used method to calculate all primes in the range [2..n] is to start with the number 2, mark it as prime, and mark all its multiples (excluding itself) as not prime. Then, we find the next smallest unmarked number, mark it as prime, and m..

  Please write the code in java

Please write the code in java for  Recursion,  Sorting and Searching

  Reads contents of two vectors

Write a program that reads contents of two vectors, and then displays the sum of these two vectors. The program should prompt the user to enter the size of the vectors first.

  Write a java program using array to auto-grade exams

Write a JAVA program using 2D Array to auto-grade exams. For a class of N students, your program should read letter answers (A, B, C, D) for each student.

  Approximate the volume of cheese in a rectangular hunk

You will create a program that will approximate the volume of cheese in a rectangular hunk of Swiss cheese. For this approximation you will assume that the holes in the Swiss cheese are of two types: spherical bubbles (all of the same size) or cyl..

  Create a complete java application

Create a complete Java application that meets these requirements and the program has an opening comments section (using block comments) with the file name, date, your name, and purpose of the program.

  Make a row with different string names

How do you make a row with different string names and put a certain amount of space between each one?

  Constructor that accepts a file name as its argument

Write a class with a constructor that accepts a file name as its argument. Assume the file contains a series of numbers, each written on a separate line. The class should read the contents of the file into an array, and then displays the following..

  Accepts a binary number from the user

Write a Java test program that accepts a binary number from the user. You should store the binary number in a String. Your program should then use afor loop to sequence through every character in the String, counting the number of ones, zeros, and..

  Write a method called hash midpoint

Write a method called hasMidpoint that accepts three integers as parameters and returns 'true' if one of the integers is the midpoint between the other two integers; that is to is if one integer is exactly between the two others. The method should re..

  Development of a graphical user interface

To understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

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