Develop a top-down design and to write a program

Assignment Help C/C++ Programming
Reference no: EM132683031

NIT3112 Advanced Web Development

Coffee Victoria POS

Objectives:

This assessment is designed to assess your understanding of variables, constants, types, operators, input/output, loops, if statements, classes, objects and functions.

Problem Description:
Coffee Victoria POS is a small-CBD Coffee Shop in NSW Australia. The population is bustling, so the Coffee Shop sells select products to maintain the rush time (breakfast and lunch). It sells five products only. Each product has a name and a price.

The programmer requires to demonstrate basic C# programming techniques, specifically using classes and objects. This assignment aims to develop a top-down design and to write a program to be used as a cash register by the Coffee Victoria POS.

Application Requirements : For our program simulation, a purchase transaction is sale and payment of a single product. For each sale, the program should prompt and get a numbered item corresponding to the product name and quantity of the product purchased. The total cost of the purchase should be calculated and displayed. Then the program should ask the amount of money paid by the customer. The calculated change will be displayed in dollars and cents as well as the currency denominations in banknotes and coins needed to make up the change in the most efficient way.

At the end of the day, the cashier enters "Done" to end the simulation. The program should then display the total amount of sales in each of the five categories and terminate. The five-product Menu is shown in table 1.

Analysis
The program will be launched from the main class "CoffeeVictoriaPOS". "Product" class is a good choice for a class with information about products for sale in the "CoffeeVictoriaPOS". The price can be set or updated by calling setPrice () method in the Product class. Also, we will construct a class "Change" to return the correct change and currency denominations for a particular sale, by calculating the smallest number of required $100, $50, $20, $10, $5 banknotes and $2, $1, 50c, 20c, 10c, 5c coins. Figure 1, illustrates the classes that need to be implemented.

Data Input
• Product name (follow the table one).
• Use Menu's item number to select the desired product.
• User must enter the quantity
• Amount of money received from the customer in cents

Output
• The total amount of purchase = quantity * product_price
• Change returned to customer = amount tendered - amount purchased)
• In addition to the amount of change, display the number of hundred-dollar, fifty-dollar, twenty-dollar, ten-dollar and five-dollar notes, two-dollar coins, one-dollar coins, fifty- cent, twenty-cent, ten-cent and five-cent coins.
• At the end of the day (menu item 6. Done entered) display the total dollars of sales for each of the five product categories and totals for the day.
Data Input
• Product name (follow the table one).
• Use Menu's item number to select the desired product.
• User must enter the quantity
• Amount of money received from the customer in cents

Output
• The total amount of purchase = quantity * product_price
• Change returned to customer = amount tendered - amount purchased)
• In addition to the amount of change, display the number of hundred-dollar, fifty-dollar, twenty-dollar, ten-dollar and five-dollar notes, two-dollar coins, one-dollar coins, fifty- cent, twenty-cent, ten-cent and five-cent coins.
• At the end of the day (menu item 6. Done entered) display the total dollars of sales for each of the five product categories and totals for the day.

Attachment:- Coffee Victoria POS Assignment.rar

Reference no: EM132683031

Questions Cloud

Compose a balance sheet for David Miller : Question - Based on the information below, compose a balance sheet for David Miller as of December 31, 2020 Bank Loan $6,000
What are the potential consequences for the business : How would the company's accounting be affected if reversing entries were not made for payroll? What are the potential consequences for the business?
K-dimensional trees or k-d trees organize : K-dimensional trees or k-d trees organize and represent spatial data. Every leaf node of the binary tree is a k-dimensional point
Create a holistic approach to managing any change : In the 1980's Tom Peters and Robert Waterman developed the McKinsey 7S framework (Dewey, 2020). This model identifies seven elements, which are strategy.
Develop a top-down design and to write a program : NIT3112 Advanced Web Development - Develop a top-down design and to write a program to be used as a cash register by the Coffee Victoria POS
Debugging process and testing process : Apply the debugging process and testing process to programs containing fundamental concepts such as decision statements, iteration, functions
Compose an income statement for Little Creatures Pet Shop : Question - Using the below information to compose an income statement for Little Creatures Pet Shop for the year ended December 31, 2020
Is there a theory that is relevant to your current workspace : Respond to the following: Is there a theory that is more relevant to your current workspace? ( theories of Lewin, Kotter, or McKinsey change management).
About opportunities in cybersecurity : Has anything you learned anything potentially made you think about opportunities in cybersecurity you may have not before?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that will consist of two functions

NuMetro has a special on movies for all members of the public but special discounts for students and pensioners.

  Convert the following infix expressions to postfix

Convert the following infix expressions to postfix

  Write a program that grades an online quiz

For this assignment, you will write a program that grades an online quiz. The program asks the student to enter his/her answer to 10 multiple-choice questions.

  Display the total amount due

You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage and display the total amount due. When the purchases are more than $200, the discount is 20%. When the purchases are $200 o..

  Write the program that compute the numeric series

Write the program that compute the numeric series. The user will be requested to input the value of the variable n

  Find the value of the present

Kamau toured Switerland from Germany. In Switzerland he bought his wife a present worth 72 Deutsche marks. Find the value of the present in

  Sequence of numbers

What sequence of numbers would be printed if the following procedure were executed with the value of N being 0

  Assume that you are tasked with tracking the orders which

loops and nested loops please respond to the followingbullsuggest one 1 example of a problematic programming situation

  Describe a macro and how many bytes of object code are used

Briefly describe a macro and How many bytes of object code are used by the entire program - What is the object code for the instructionadd eax

  Implement database having array of pointers

One way to implement this database is to have an array of pointers pointing to Employee objects. You will obviously require a function named Calculate_salary() which will be different for each employee class. Write code in c++

  Write a c program that displays the given picture

Write a C Program that displays the following picture. (Hint: Write a sequence of printf statements that display lines of asterisks and blanks.)

  Construct a hash table with a load factor near

Construct a hash table with a load factor near 90%. For this problem, use a table of 114 elements with subscripts ranging from 0 to 113.

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