Question: rudyguccio@gma Java Explorer / Learn Oracle for F e . com / ols / learning - path / java - explorer / 8 8 3

rudyguccio@gma
Java Explorer / Learn Oracle for F
e.com/ols/learning-path/java-explorer/88323/79726
Case Study
Lase stuay
Module
Free
40m
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 item 1 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?
double total item 2**2+item1**(1+tax);
int total item 2 price2+ item 1* price
 rudyguccio@gma Java Explorer / Learn Oracle for F e.com/ols/learning-path/java-explorer/88323/79726 Case Study

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!