I provided a link where you should input all the codes Chapter 1 & 2 Programming Assignment https://codecheck.io/files/2105311821elma5g2inoyybszfuicwhm3gi TakeoutOrder.java We will be writing a s

I provided a link where you should input all the codes

 Chapter 1 & 2 Programming Assignment

https://codecheck.io/files/2105311821elma5g2inoyybszfuicwhm3gi

TakeoutOrder.java

We will be writing a simple program to model a take out fast food order.  Once we have the user’s name and food order, we will output the “check” or “receipt” with the total purchase.

The following are sample runs of the program to help you write your code and format your output.  Please make note of “blank” lines in between output statements.  It must match exactly to pass the Code Check tests.

Sample Output 1:

Welcome to Burger Hut. We sell hamburgers, cheeseburgerssmall fries, large fries, and one size drink.Once you have placed your order, your receipt will print.

Please enter your first name:  use my name —> JeffreyPlease enter your last name: use my name ——> MohEnter how many hamburgers to order: 1Enter how many cheeseburgers to order: 2Enter how many small fries to order: 2Enter how many large fries to order: 1Enter how many drinks to order: 3

               Burger Hut     <– Notice the indented name and date – printf needed           6/28/2021 5:51 PM

 Moh, J          <– Notice the left-aligned last name, first initial, and totalTotal: $27.40

     \\Thank you and come again!//  <– Notice indented goodbye message and \\ // escape sequence

Sample Output 2:

Welcome to Burger Hut. We sell hamburgers, cheeseburgerssmall fries, large fries, and one size drink.Once you have placed your order, your receipt will print.

Please enter your first name: JasminePlease enter your last name: DavisEnter how many hamburgers to order: 0Enter how many cheeseburgers to order: 4Enter how many small fries to order: 3Enter how many large fries to order: 1Enter how many drinks to order: 5

               Burger Hut           6/28/2021 5:51 PM

Davis, JTotal: $39.05

     \\Thank you and come again!//

Instructions for Part 1:

  1. Go to the following URL to complete the program: Project 1
  2. If using and IDE (jGrasp, Eclipse, other), create a new class file named TakeoutOrder.Javascript with a main method.  First, try to complete the program in your IDE with the Instructions and what is given in the program link.
  3. You will be filling in code everywhere you see the ellipses (. . .) in the Code Check code.  Please follow the instructions and use the Sample Outputs to guide you.
  4. Write the Class comment and @author and @version tags
  5. Declare and initialize 5 Constants for:
    1. The cost of a hamburger is 4.75
    2. The cost of a cheeseburger is 4.95
    3. The cost of a small fry is 1.00
    4. The cost of a large fry is 2.50
    5. The cost of a drink (one size only) is 2.75 
      • Remember to name your Constants according to Javascript standards using ALL_CAPS.
  6. Use a series of println statements to output the “Greeting” message (see Sample Output)
  7. The prompt for the user’s first name is already included in Code Check.  Create a variable to store the input for the first name and use a Scanner method to read the value from the Console.
  8. The prompt for the user’s last name is already included in Code Check.  Create a variable to store the input for the last name and use a Scanner method to read the value from the Console.
  9. Following the example of Steps 7 & 8, write the prompts for each food item and create variables to store the inputs.  Use Scanner methods to read in the values from the Console.  (You will have 5 more prompt and input statements.)
  10. Using only existing variables and Constants, calculate the total cost of the bill (receipt).  No *magic* numbers here – use the variables and constants only.
  11. Using printf statements, output the Restaurant name (Burger Hut) and the date and time (6/2/8/2021 5:51 PM) indented.  *Note: To indent the output in, you will need a numerical value in your printf statement before the ‘s’ in %s  (see p. 52).  You can judge how far in to indent by comparing the ‘B’ in Burger to the line above it – notice it is under the ‘d’ in drinks.
  12. Using a println statement, output the last name, first initial of the user.
  13. Using printf statements, output the total with 2 decimal places (see p. 52) and the goodbye message indented .  Again, use the method of Step 11 to judge how far to indent.  You will also need the \\ and // in the message, so please make sure to look at Escape Sequences.
  14. Submit your code in Code Check and check the results of the tests. Please correct any error messages or output formatting issues.
  15. Once you have everything correct, download the zipped file and then upload to this Assignment folder.  You should see a “Download” button that looks like this that will give you a zipped file containing your code and test data: 

Testing and Submitting

Once you have thoroughly tested your program, please upload the zipped file only to this Ch. 1 & 2 Programming Assignment folder.

You will be graded on:

  1. Neatness of code and use of proper indentation of 4 spaces, 8 spaces, etc.  This is the Checkstyle part of your Report.
  2. Commenting of code – including class comment, @author, @version, and code comments. This is the Checkstyle part of your Report.
  3. Good use of constant and variable names – they should be descriptive names and not individual characters or abbreviations.  Ex.  FINAL_COST or firstName. This is the Checkstyle part of your Report.
  4. Output is correct and matches the Sample Output for all tests that executed on your code in Code Check.  This is the Test 1, Test 2, etc. part of your Report.  They must say “Pass”.
  5. Correct calculations using variables and constants (i.e. the math is correct).  This is the Test 1, Test 2, etc. part of your Report.
  6. My visual inspection of your code.  I will be checking for good variable and constant names and well as good indenting of code.  Instructor reserves the right to make adjustments to the Code Check score based on inspection.

ALL DONE!!  Great job!

Elitewriterhelp.com is an online academic writing site that provides a variety of services to students and professionals in need of essay, dissertation, and research paper assistance. This website was founded by experienced writers and editors who understand the needs of today’s student community. With their help, students can get a well-written paper without having to worry about the quality or accuracy of their content.

Elitewriterhelp.com offers a wide range of services that are designed to meet the needs of any student or professional looking for some extra help with their academic work. From simple editing services to complete custom writing pieces, they have something for everyone! Their team consists of highly qualified writers and editors who have years of experience in both academia and industry sectors across all fields such as English literature, nursing sciences, medical science, engineering design & technology, accounting & finance etc., making them one of the best providers around when it comes to providing quality content writing services.

When it comes to their custom writing service, Elitewriterhelp.com provides everything from essays & dissertations to research papers & lab reports; all written according to your exact specifications & requirements so that you can be sure your professor will be impressed with what you submit! They also provide formatting help which includes APA/MLA/Chicago style formatting for those stuck on tedious details like citations or bibliography entries; perfect for those last-minute assignments!

For those looking for proofreading & editing services instead; Elitewriterhelp.com has you covered too! The team at this website offer professional copyediting which can check grammar errors and spellings mistakes while still preserving your original voice within the text; ensuring that whatever piece you submit looks great while still sounding exactly how you want it do sound! What’s more is if required they can also provide advice on how best to improve certain parts in order make sure your work meets the criteria set by your professors so no marks are lost due to minor mistakes made in hurry or ignorance.

Last but not least is Elitewriterhelp’s paraphrasing service which helps take care off any plagiarism risks associated with submission an assignment where quotes are used extensively taken from sources outside class materials (eBooks etc.). The team will ensure that anything being submitted sounds fresh while leaving out any potential legal issues plaguing people using other authors works without proper permission given first when appropriate credit isn’t given otherwise – definitely something worth investing into before submitting examples cited within studies found elsewhere apart from class material sources only mentioned once during seminars etc..

To sum up: Elitewriterhelp offers students access top-notch custom writing pieces as well as editing/proofreading packages for existing ones already written – perfect for double checking against silly grammatical errors / typos overlooked during initial composition stages meaning there’s always hope even when running short on time ahead up coming deadlines looming near after long lectures spent inside classrooms sat away from laptops used mainly taking notes by hand easily misplaceable later down line afterwards rendering past efforts worthless sadly…

Elite Writer Help
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.