Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 399 Weeks Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 22 Sep 2017 My Price 9.00

BookOrderApp

Please reply with a quote for solutions to the following 12 java questions.
Thank You

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:

Fresno

CA

93720





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.

Answers

(5)
Status NEW Posted 22 Sep 2017 08:09 PM My Price 9.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)