Question: You've setup a Clothing class with a has a public double field price. You've created two instances in your program's main method where item1
You've setup a Clothing class with a has a public double field price. You've created two instances in your program's main method where item1 is a jacket and item2 is a shirt. You've also created a double for a tax rate in the main method. How would you accurately calculate the after-tax total for two shirts and a jacket from the main method? O double total = = Oint total = item2.price+item2.price+item1.price * tax; Oint total = (item2.price*2 + iteml.price) * (1+tax); O double total = item2.price+item2.price+item1.price *tax; Jm O double total (1+tax); (item2*2 + item1*(1+tax); = (item2.price*2 + item1.price) * Confirm
Step by Step Solution
There are 3 Steps involved in it
The question is asking how to calculate the aftertax total for purchasing two shirts item2 and one j... View full answer
Get step-by-step solutions from verified subject matter experts
