Creating the class named billing for the photo book store


Question 1) Create the class named Billing which includes three coverloaded computeBill() methods for the photo book store.

a) When computeBill() recieves single parameter, it represents price of one photo book ordered. Add 8% tax and return the total due.

b) When computeBill() recieves two parameters, they represent price of a photo book and the quantity ordered. Multiply the two values, add 8% tax, and return the total due.

c) When computeBill() recieves three parameters, they represent the price of a photo book, quantity ordered, and the coupon value. Multiply the quantity and price, reduce the result by the coupon value, and then add 8% tax and return the total due.

d) Write a main() method which test all three overloaded methods.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Creating the class named billing for the photo book store
Reference No:- TGS04608

Expected delivery within 24 Hours