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, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
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, 13.01.2021 14:00
question
Mathematics, 13.01.2021 14:00
Questions on the website: 13722361