You will use what you have learned from Chapters 1 and 2 in Big Javascript Late Objects to complete the following programs. Use what you have learned about the Scanner class, Constants, variables, printf, and Strings to complete the project.
Remember to watch the Lecture Videos and additional videos in iCollege for examples on these topics and how to comment your program correctly. **Please do not use any advanced material that is not in Chapters 1 or 2.
We will be completing our Programming Projects using Code Check. Nothing is required by you to use this program. For each project, I will provide a URL that will take you to the project to complete. Once you have completed the coding project(s) (you have unlimited attempts), you will download the Report from the Code Check website and upload this zipped file(s) to this Assignment folder. Inside this zipped file will be your completed code and your *calculated score based on testing. You may use your IDE (jGrasp/Eclipse) to write the code and then copy and paste over to Code Check, if desired.
*The calculated score will be located at the bottom of your submission in the form of (for example) “5/5 = 100%”, “4/5 = 80%”, “3/5 = 60%”, etc. IF YOU DO NOT obtain 100%, I encourage you to reach out for help on the Problem & Solutions Blog with your error messages so others can help. You can also view the “Common Code Check Errors” document located in iCollege. Please make sure you have viewed the “How to Use Code Check” video before starting.
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: JamiePlease enter your last name: HowardsEnter 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 6/28/2021 5:51 PM
Howards, J <– Notice the left-aligned last name, first initial and totalTotal: $27.40
\\Thank you and come again!// <– Notice the indented goodbye message and \\ //
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: ArianellePlease enter your last name: WalkersonEnter 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
Walkerson, ATotal: $39.05
\\Thank you and come again!//
Instructions for Part 1:
Testing and Submitting
Once you have thoroughly tested your program, please upload the zipped file only to this Programming Project 1 folder.
You will be graded on:
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more
Recent Comments