Design a class checkoutsystem

Assignment Help JAVA Programming
Reference no: EM131449762

Assignemnt: JAVA shoppingcart

Design a shopping cart class. You can store a list of items in the shopping cart. Each item has its own specifications (i.e. code, name, ...). Each shopping cart is for a person. The method addTocart of shipping cart accepts an item as argument and adds that item to the cart and the method removeFromcart does it in reverse.

You may need other classes to use them as internal complex type of your shopping cart.

Create a class OnlineStore. This class has a method order summery, this method accepts the cart and information of the owner of the cart, sums up the prices, calculates the tax and shipping cost and produces an Order object, this object has a field totalPrice and a field owner of order.

Design a class CheckoutSystem. Each checkout system has a method checkout that accepts the order and a credit cart as arguments and checkouts the items. we don't care how internally this method works, the only task that it does right now is to produce a confirmation number and return it. Show the order summery.

Create a class OnlineOrderTestDrive. Create the main method inside. Inside your main method create a list of items and add them to a shopping cart object. Create an instance of the OnlineOrder class and call the orderSummery method of that class. Store the result in a variable. Create an instance of the CheckoutSystem and call the checkout method of that object. Show the confirmation message.

Note that there are internal classes that exist but I didn't mention them.

Attachment:- code_of_march_30.zip

Reference no: EM131449762

Questions Cloud

Explain the essential skills that would make a person good : Describe two (2) financial career options that an individual with a finance education might pursue and explain the value that such a position adds to a company.
Unless specified in the useradd command : When creating user account using useradd how is the default group determined?
Calculate the continuously compounded returns : Calculate the continuously compounded returns for each month for each index. Calculate the average return, variance, standard deviation, covariance, correlation coefficient and beta for all possible combinations of returns.
Describe the supply chain management : Briefly describe the supply chain management (SCM) process. Discuss the role of SCM in e-business and e-commerce.
Design a class checkoutsystem : Design a class CheckoutSystem. Each checkout system has a method checkout that accepts the order and a credit cart as arguments and checkouts the items.
Justify the agenda-setter model : Consider the agenda-setter model of Romer and Ro-senthal (1978) (sec also Shepsle 1981). The object of the game is to make a one-dimensional decision.
Create an application that lets the user enter : Create an application that lets the user enter the amount that he or she has budgeted for a month.
How software development methodologies can work in tandem : how software development methodologies can work in tandem with project management for benefit of both information systems development projects and organization.
Explain why the court allowed a party to a contract breach : BUL2241 BUS LAW I ONLINE 563737 Review DeRosier v. Utility Systems of America and explain why the court allowed a party

Reviews

Write a Review

JAVA Programming Questions & Answers

  Compute the maximum points scored by player one and two

Compute the maximum points scored by Player 1 and Player 2. Compute the maximum number of points scored in a continuous sequence by Player 1 and Player 2.

  Populate a one-dimensional array

Populate a one-dimensional array with the following grades in this order: 93, 61, 72, 45, 84, 51, 70, 83, 96, and 66. Use a loop to call a method from main() that adds

  A java program that reads the records

A java program that reads the records from the golf.dat file and displays them. It also displays the name of the player with the best (lowest) golf score.

  Write a bluej project- birthday paradox

The birthday paradox states that if there are 23 people in a room then there is a slightly more than 50:50 chance that at least two of them will have the same birthday.

  Can linear search algorithm be encoded using recursion

Determine the average amount of time people spend waiting for tables and provide examples from the "real world" of unsorted lists, sorted lists, indexed lists, lists that permit duplicate elements, and lists that do not permit duplicate elements

  Write an application class that contains several methods

Write a driver class. This class should use the main method to call four methods in the application class that will display our JOptionPanes - Write an application class that contains several methods.

  Corrections as necessary and output screen snapshots

Submit all completed programs, with corrections as necessary and output screen snapshots, to demonstrate that they all perform properly to meet the specifications.

  Create application of your choice utilizing swing components

Create an application of your own choice utilizing the Swing Components. Example: You can make an application of your own choice showing the values of cars depending upon the models or years chosen.

  Determine the number is prime

Determine if the number is prime. If N is prime, then print a message stating that it is prime - If the integer is not between 0 and 8000000, then the program keeps prompting the user to re-enter the number till the integer is within the proper ran..

  Accepts a scanner representing an input file

Write a method in JAVA called stripHtmlTags that accepts a Scanner representing an input file containing an HTML web page as its parameter, then reads that file and prints the file's text with all HTML tags removed. A tag is any text between the c..

  Create a student object based on the information given

You will then attempt to open the file, create a Student object based on the information given in the file and read the student's essay from the file.

  Java application to generate three-digit random number

Write a Java application that generates a 3-digit random number 100 times. Display the output for each of the generated numbers and the sum of all 100 numbers.

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