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