Question
correct this code for me please public class OnlineBookOrderingMbuh { public static void main(String[] args) { //Test Data #1 System.out.println(Test Data #1 + );
correct this code for me please
public class OnlineBookOrderingMbuh {
public static void main(String[] args)
{
//Test Data #1
System.out.println("Test Data #1" + " ");
double BookSubtotal = 68.45;
double Tax = 4.44925;
double Shipping = 14.75;
System.out.print("Number of books purchesed: 5" + " ");
System.out.print("Book Subtotal: $" + 68.45 + " " );
System.out.print("Tax: $" + 4.44925 + " ");
System.out.print("Shipping: $" + 14.75 + " ");
System.out.println("---------------------------------" + " ");
double sum = (BookSubtotal + Tax + Shipping);
System.out.print("Order Total: "+ "$"+ sum + " ");
System.out.println("_______________________________" + " ");
//Test Data #2
System.out.println("Test Data #2" + " ");
double BookSubtotal1 =125.37;
double Tax1 = 8.14905;
double Shipping1 = 23.6;
System.out.print("Number of books purchesed: 8" + " ");
System.out.print("Book Subtotal: $" + 125.37 + " " );
System.out.print("Tax: $" + 8.14905 + " ");
System.out.print("Shipping: $" + 23.6 + " ");
System.out.println("---------------------------------" + " ");
double sum1 = (BookSubtotal1 + Tax1 + Shipping1);
System.out.print("Order Total: "+ "$"+ sum1);
}
}
i want same answer in the attachment
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started