Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

More Books

Students also viewed these Databases questions