Computers and Technology

Create a class named billing that includes four overloaded computebill() methods for a photo book store. • when computebill() receives a single parameter, it represents the price of one photo book ordered. add 8.5% tax, and return the total due.

• when computebill() receives two parameters, they represent the price of a photo book and the quantity ordered. multiply the two values, add 8.5% tax and return the total due.
• when computebill() receives three parameters, they represent the price of a photo book, the quantity ordered, and a coupon value. multiply the quantity and price, reduce the result by the coupon value, and then add 8.5% tax and return the total due.
• when computebill () receives four parameters, they represent the price of a photo book, the quantity ordered, a coupon value, and a weekly discount. multiply the quantity and price, reduce the result by the coupon value plus the weekly discount, and then add 8.5% tax and return the total due.

write a main () method that tests all three overloaded methods.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:00, ericadawn2852
How do i draw hello world in python and how do i make it loop?
Answers: 1
image
Computers and Technology, 22.06.2019 11:00, kingethan08
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
image
Computers and Technology, 22.06.2019 19:30, ibrahimuskalel
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
image
Computers and Technology, 23.06.2019 01:00, leo4687
Complete the sentence about a presentation delivery method
Answers: 2
Do you know the correct answer?
Create a class named billing that includes four overloaded computebill() methods for a photo book st...

Questions in other subjects:

Konu
Physics, 10.03.2021 18:10
Konu
Mathematics, 10.03.2021 18:10