Question: Create a class named BookBilling that includes three overloaded computeBill ( ) methods for the Happy Memories Company, which sells photo books. ~When computeBill (

Create a class named BookBilling that includes three overloaded computeBill() methods for the Happy Memories Company, which sells photo books.
~When computeBill() receives one parameter, it represents the price of the photo book. The method takes the price of the photobook and adds an 8.25% tax and returns 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.25% 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.25% tax and return the total due.
Write a main() method that prompts the user for all required arguments and tests all 3 overloaded methods.
I honestly just need a psudo code for this code I already made~
public class Billing {
public double computeBill(double price){
double total = price;
return (total + total*0.08);
}
public double computeBill(double price, double quantity){
double total = price * quantity;
return (total + total*0.08);
}
public double computeBill(double price, double quantity, double coupan){
double total = price*quantity - coupan;
return (total + total*0.08);
}
public static void main(String args[])
{
Billing b = new Billing();
System.out.println(b.computeBill(10));
System.out.println(b.computeBill(10,20));
System.out.println(b.computeBill(10,20,100));
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!