Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java thank you! 2 separate files thanks!!: 1.AmazonOrder.java 2.AmazonOrderPrinter.java (provided) Use the following file: AmazonOrderPrinter.java /** * Tester for the AmazonOrderPrinter class * * @author

java thank you!

2 separate files thanks!!:

1.AmazonOrder.java

2.AmazonOrderPrinter.java (provided)

image text in transcribed

Use the following file:

AmazonOrderPrinter.java

/** * Tester for the AmazonOrderPrinter class * * @author Kathleen O'Brien */ public class AmazonOrderPrinter { public static void main(String[] args) { AmazonOrder order = new AmazonOrder(); order.add(12.59); order.add(18.25); order.remove(12.59); System.out.println(" Contents"); System.out.println(order.getContents()); order.reset(); order.add(10.25); order.add(11.75); order.add(15.50); order.remove(15.50); order.add(23); System.out.println("Subtotal: " + order.getSubtotal()); System.out.println("Total: " + order.getTotal()); System.out.println(" Contents"); System.out.println(order.getContents()); System.out.println(" Contents"); System.out.println(order.getContents()); } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions