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, 21.06.2019 20:50
Write a method in the heapintpriorityqueue class called merge that accepts another heapintpriorityqueue as a parameter and adds all elements from the other queue into the current queue, maintaining proper heap order such that the elements will still come out in ascending order when they are removed. your code should not modify the queue passed in as a parameter. (recall that objects of the same class can access each other's private fields.)
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
You know the right answer?
Create a class named billing that includes three overloaded computebill() methods for a photo book s...
Questions
question
Mathematics, 02.09.2021 04:00
question
Mathematics, 02.09.2021 04:00
question
Mathematics, 02.09.2021 04:00
question
Mathematics, 02.09.2021 04:10
question
Advanced Placement (AP), 02.09.2021 04:10
question
Mathematics, 02.09.2021 04:10
question
Mathematics, 02.09.2021 04:10