subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
You know the right answer?
Create a class named billing that includes four overloaded computebill() methods for a photo book st...
Questions
question
Biology, 01.03.2021 19:00
question
Social Studies, 01.03.2021 19:00
question
Mathematics, 01.03.2021 19:00
question
Mathematics, 01.03.2021 19:00