Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Two code about the introduction of Java, separate it to two files

Two code about the introduction of Java, separate it to two files

Two code about the introduction of Java, separate it to two files

Question Description

  • Open a new class called Pastries.java.
  • This program will simulate an online pastry business and display a receipt to the customer who has placed an order.
  • The program should follow the exact formatting shown below, including spacing and indentation.
    • Hint: Remember “t”?
  • Note that you will need to print out exactly 2 decimal places for the dollar values.
  • Additionally, for full credit, please use final variables to store the price of each pastry. For example:

final double PRICE_ECLAIR = 3.95; //use all CAPS for the names of final variables

  • When your program output works as shown below (including proper formatting of the output), submit Pastries.java to Canvas
  • Note: Listen to the Java Jive song here.

Sample Output:

Welcome to Java Jive Pastries and Cafe!
Allow me to assist you with your order.

We sell the following desserts:
Mocha Eclairs — $3.95 each
Cocoa Cookies — $2.50 each
Coffee Cake — $5.50 per slice
Java Jive Brownies — $4.50 each

Please enter the number of Mocha Eclairs: 3
Please enter the number of Cocoa Cookies: 12
Please enter the number of slices of Coffee Cake: 1
Please enter the number of Java Jive Brownies: 5

You Ordered the Following:
Mocha Eclairs: 3 @ 3.95 each… $11.85
Cocoa Cookies: 12 @ 2.50 each… $30.00
Coffee Cake: 1 @ 5.50 each… $5.50
Java Jive Brownies: 5 @ 4.50 each… $22.50

Total: $69.85

Thank you for your order! Please come again!

  • Note that t is not a perfect solution for lining up the output in the case of every numerical input. Just do the best you can, and don’t worry if something like a single digit number throws off your alignment.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20