Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

Explain the pages in white the expert taxes

Answered: 1 week ago