Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
\f

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions