Question
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),
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 bill () 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 = 3 *30=90. The sales tax = 90*0.075=6.75 The total bill = 90+6.75 = $96.75. The program has to be in Java Eclipse, and error free please.
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