subject
Computers and Technology, 11.11.2019 20:31 hey9691

Create a class named billing that includes three 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% 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% 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% tax and return the total due. public class billing {final static double tax = 0.08; public static void main(string[] args) {final double highprice = 24.99; final double medprice = 17.50; final double loprice = 10.00; final int quan1 = 4; final int quan2 = 6; double bill; bill = computebill(highprice); system. out. println("the total for a photobook that costs $" +highprice + " is $" + bill); bill = computebill(medprice, quan1); system. out. println("the total for " + quan1 +" photobooks that cost $" +medprice + " is $" + bill); bill = computebill(loprice, quan2, 20.00); system. out. println("the total for " + quan2 +" photobooks that cost $" +loprice + " with a $20 coupon is $" + bill); }public static double computebill(double amt) {// write your code here}public static double computebill(double amt, int quantity) {// write your code here}public static double computebill(double amt, int quantity, double coupon) {// write your code here}}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
You know the right answer?
Create a class named billing that includes three overloaded computebill() methods for a photo book s...
Questions
question
Mathematics, 19.07.2019 23:30
Questions on the website: 13722362