Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. Constructor: to set the values of the attributes. b. Getter methods for all the instance variables. C. calcDisc(): to calculate the discount using following

a. Constructor: to set the values of the attributes.

b. Getter methods for all the instance variables.

C. calcDisc(): to calculate the discount using following criteria:

Discount Category ("Male" "Female" "Children")

2% of jewelRate

3% of jewelRate

5% of jewelRate

d. totalAmt(): to calculate and return net meter reading using following formula:Total Amount = Rate x Quantity - Discount

e. displayDetails(): to print all the details of the including total cost. The specifications of the main method are as follows:-

f. Create 3 objects of the JewelBill class.

g. Provide values as per the attributes of the objects.

h. Print details of all the JewelBill objects."

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions