Develop a new point of sale program

Assignment Help Computer Engineering
Reference no: EM133703530

You have been asked to help the restaurant develop a new point of sale program. As the restaurant is just getting up and running the first iteration of the program will be limited. The program must prompt the user to determine the number of sandwiches, wings, and sodathe user would like to order and generate the sales receipt. All orders will receive a special "VIP" discount to encourage customers to visit.

Concepts • Scanner • Mathematical operators • Variable handling • Print formatting

1. In main, declare and assign double variables for the cost of sandwiches, wings, soda and the amount of the "VIP" discount. The values are as follows: Item Value sandwiches$5.50. wings $3.25. soda $2.00. "VIP" Discount $1.50. Note: These variables are constants (variables that should not change), which are not covered until later in the semester. However, for your awareness, the naming convention for constants is all uppercase with words separated by underscores. For example, SANDWICHES_COST. This naming convention is encouraged, but not required at this time.

Step 2 Print the welcome message. Note: Welcome message and all other text can be seen in the screenshots located in the Example Output section of this document.

Step 3 use an instance of the Scanner object. Ensure the scanner object is closed when it is no longer needed.

Step 4 Prompt the user for the count of sandwiches to add to the order. Repeat for wings and soda. All food items can only be ordered in whole number quantities, no partial orders. Note: You can assume a well-behaved user; meaning the user will enter a valid input for each prompt. No input validation or error handling is necessary at this point.

Step 5 Calculate the order subtotal and apply the "VIP" discount. For this version every order will receive a discount. The subtotal is the sum of the count of each item times its cost, minus the VIP discount. subtotal = sandwiches cost∗ count sandwiches + wings cost∗ count wings+ sodacost ∗ count soda- VIP discount

Step 6 Calculate the tax and total. The tax is 6 percent of the subtotal, and the total is the subtotal plus tax. tax = subtotal ∗ .06 total = subtotal + tax

Step 7 Calculate the average cost per item sold. The average cost includes the "VIP" discount and tax. average cost ??er item = total / total items sold

Step 8 Display the receipt using any combination of print, println, and printf. All values representing currency must include a $ and be formatted with two digits after the decimal point. The "VIP" discount must include quotations in the label and parenthesis around the dollar amount. Receipt formatting must be the same as the screenshots in the Example Output section.

Reference no: EM133703530

Questions Cloud

Address the privacy concerns and data usage ethics : Address the privacy concerns and data usage ethics it is crucial for social media platforms to prioritize transparency and empower users with control over
Write the code to insert two textboxes and button : Write the code to insert two textboxes and button that will allow the user to change their username and password for the application
What should be used as the dictionarys keys : Considering that there are 10 lab marks that need to be associated with each student, what should be used as the dictionary's keys
What type of visualization are they using : with the ability to filter by source, time of day, and page viewed. This enables web team managers to identify the sources driving the most traffic. What type
Develop a new point of sale program : Develop a new point of sale program. As the restaurant is just getting up and running the first iteration of the program will be limited
Who are the various team members to consider adding to team : Who are the various team members to consider adding to the team? Identify their roles and contributions to the project.
Developed the middle-range nursing theory : Marion Conti-O' Hare developed the middle-range nursing theory of the Nurse as a wounded healer and claims that individuals are more likely to take up a career
Explain factors leading to a specific patient-safety risk : Explain factors leading to a specific patient-safety risk in a health care setting. Explain how nurses can help coordinate care to increase patient safety.
Discuss privacy rule and how relates to health information : Discuss privacy rule and how that relates to health information. Discuss security rule and how that relates to health information.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd