Question: I. Write a class of Sales. Each Sales object must have a merchandize name (sweater for example), number of items bought (3 sweaters bought for

 I. Write a class of Sales. Each Sales object must have

I. Write a class of Sales. Each Sales object must have a merchandize name (sweater for example), number of items bought (3 sweaters bought for example), and price per item ($30 per sweater, for example). Include get, set, and toString methods. Also, include a billo method which will calculate the total bill for the purchase. The total bill should include a 7.5% sales tax. For the sweater sale in the problem, price for the 3 sweaters-330-90. The sales tax = 90*0.075 = 6.75. The total bill 90+6.75 = $96.75

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!