1. Code a statement that declares a class named BookOrderApp that has public access.
2. Code a statement that declares an integer named quantity and assigns an initial value of zero to it.
3. Given a double variable named total and an integer variable named quantity, code a statement that divides the total by the quantity, assigns the value to another variable named price, and retains the decimal places in the result.
4. Code a statement that declares a string variable named cityStateZip and then assigns a value that joins three string variables named city, state, and zip and two string literals that separate the city and state by a comma and a space and the state and zip by a space.
5. Code a string that, when displayed on the console, will look like this:
6. Code a statement that imports all of the classes in the java.io package.
7. Code a statement that creates an instance of a class named BookOrder and assigns it to a variable named bookOrder. Pass arguments named code, price, and quantity to the constructor of this class.
8. Code a statement that prints a variable named total to the console, followed by a new line character.
9. Given a Scanner variable named sc, code a statement that returns the value the user enters at the console as a String object and stores it in a variable named city.
10. Code an if/else statement that determines whether the value of a numeric variable named quantity is equal to 1, 2, 3, or more. If it’s equal to 1, the statement should set a variable named shipping to 4.95. If it’s equal to 2, the statement should set the shipping variable to 7.95. If it’s equal to 3, it should set this variable to 9.95. And if it’s more than 3, it should set this variable to 10.95. Assume that all variables have already been declared and initialized.
11. Code an if/else statement that determines if a string variable named state is equal to “CA”. If it is, the statement should set a variable named taxPct to .0775. Otherwise, it should set this variable to zero.
12. Code a while statement that will continue executing while a variable named multiplier is not equal to 1. The code within the while loop should start by subtracting 1 from the multiplier variable. Then, it should multiply a numeric variable named number by the multiplier variable and store the result in the number variable. Assume that both variables have already been declared and initialized.