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, 22.06.2019 07:30
Jasper and samantha are in a robotics competition. the guidelines state that the robots should be able to move a 10-gram weight at least 2 meters and turn in a circle. jasper and samantha have already built the robot. which step of the design process should they follow next to decide whether their robot meets the minimum criteria for the competition?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
question
Computers and Technology, 22.06.2019 10:40
5. illustrate how fine-line inventory classification can be used with product and market segments. what are the benefits and considerations when classifying inventory by product, market, and product/market?
Answers: 2
question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
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
Mathematics, 13.02.2020 21:03
Questions on the website: 13722361