Answered step by step
Verified Expert Solution
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)
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started