View the step-by-step solution to:

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" + "n");

double BookSubtotal = 68.45;

double Tax = 4.44925;

double Shipping = 14.75;

System.out.print("Number of books purchesed: 5" + "nn");

System.out.print("Book Subtotal: $" + 68.45 + "nn" );

System.out.print("Tax: $" + 4.44925 + "nn");

System.out.print("Shipping: $" + 14.75 + "nn");

System.out.println("---------------------------------" + "n");

double sum = (BookSubtotal + Tax + Shipping);

System.out.print("Order Total: " + "$" + sum + "nn");

System.out.println("_______________________________" + "n");

//Test Data #2

System.out.println("Test Data #2" + "n");

double BookSubtotal1 =125.37;

double Tax1 = 8.14905;

double Shipping1 = 23.6;

System.out.print("Number of books purchesed: 8" + "nn");

System.out.print("Book Subtotal: $" + 125.37 + "nn" );

System.out.print("Tax: $" + 8.14905 + "nn");

System.out.print("Shipping: $" + 23.6 + "nn");

System.out.println("---------------------------------" + "n");

double sum1 = (BookSubtotal1 + Tax1 + Shipping1);

System.out.print("Order Total: " + "$" + sum1);

}


}



i want same answer in the attachment



online booking.PNG

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Java Programming tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors