Vending Machine Introduction Vending Machines are machines accepting money or credit cards in order to dispense...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Vending Machine Introduction Vending Machines are machines accepting money or credit cards in order to dispense various goods including beverages, snacks, tickets, tobacco, among others attempting to replace the traditional clerk counter. Although the vending machine is an ancient machine (first VM in ancient Greece around 1" century AD selling "holy water") and although widely used in England during 17th century for dispensing tobacco, it was not before the 20th century that they found application in diverting markets. Today, VMs are used as points of sale for almost any product, from fast food meals (pizzas, burgers) to clothes and underwear. The principle is the same for all kinds of VM: client inserts money and gets a product or service. Objectives You are asked to design the software of a Vending Machine using Clanguage. Your program should have basic user interface displayed on the screen of the computer and should accept command from the keyboard. The software should be able to run standalone and its usage must be self-explanatory. The vending machine must provide both a client mode for purchasing products and an administrator mode for product reloading, product modification and changing prices. SMART FUEL STATION Specifications The program should at least meet the following specifications: • Have two modes of operation: a client mode (CM) and an administrator mode (AM). The last one should be hidden to the client mode (e.g., secret option, password protected etc) All products of the VM should be saved so that each time the program is run the updated menu is shown. . (CM) Products are loaded and displayed in a menu together with all possible options and what they mean. . (CM) Each product has an internal count corresponding to the quantity available (stock). Stock can be modified in AM. University of Nicosia/Engineering Dept. Project Smart Chascer 1/2 Programming for Engineers . (CM) If a product is out of stock, it cannot be purchased and there should be a clear indication for this in the menu. • (CM) There is an option for the client to buy a product after selecting it (e.g., giving a number correspond to the product) and paying the appropriate amount. • (CM) The purchase is indicated on the screen with a message (e.g. saying "Please collect your <product name> in the slot below"). . (CM) Inserting coins in the VM should be emulated using keyboard buttons. You must provide. options for at most 3 coins (e.g. €0.50, €1 and €2). Anything not specified above is left to you to decide. • (CM) Products should have various prices and not only equal to the 3 coins accepted. . (CM) The VM calculates change and informs the client for the change returned on the screen with a message (e.g., displaying: "Change: €1.50. Please collect them in the slot below."). • (AM) Option for reloading each product with more items (change the quantity count). • (AM) Option to change the price for each product. • (AM) Option to add/delete a product. . (AM) Option to clear all quantities for all products. . (AM) All changes in this mode are saved (in a file or files) in order to be used at the CM. Vending Machine Introduction Vending Machines are machines accepting money or credit cards in order to dispense various goods including beverages, snacks, tickets, tobacco, among others attempting to replace the traditional clerk counter. Although the vending machine is an ancient machine (first VM in ancient Greece around 1" century AD selling "holy water") and although widely used in England during 17th century for dispensing tobacco, it was not before the 20th century that they found application in diverting markets. Today, VMs are used as points of sale for almost any product, from fast food meals (pizzas, burgers) to clothes and underwear. The principle is the same for all kinds of VM: client inserts money and gets a product or service. Objectives You are asked to design the software of a Vending Machine using Clanguage. Your program should have basic user interface displayed on the screen of the computer and should accept command from the keyboard. The software should be able to run standalone and its usage must be self-explanatory. The vending machine must provide both a client mode for purchasing products and an administrator mode for product reloading, product modification and changing prices. SMART FUEL STATION Specifications The program should at least meet the following specifications: • Have two modes of operation: a client mode (CM) and an administrator mode (AM). The last one should be hidden to the client mode (e.g., secret option, password protected etc) All products of the VM should be saved so that each time the program is run the updated menu is shown. . (CM) Products are loaded and displayed in a menu together with all possible options and what they mean. . (CM) Each product has an internal count corresponding to the quantity available (stock). Stock can be modified in AM. University of Nicosia/Engineering Dept. Project Smart Chascer 1/2 Programming for Engineers . (CM) If a product is out of stock, it cannot be purchased and there should be a clear indication for this in the menu. • (CM) There is an option for the client to buy a product after selecting it (e.g., giving a number correspond to the product) and paying the appropriate amount. • (CM) The purchase is indicated on the screen with a message (e.g. saying "Please collect your <product name> in the slot below"). . (CM) Inserting coins in the VM should be emulated using keyboard buttons. You must provide. options for at most 3 coins (e.g. €0.50, €1 and €2). Anything not specified above is left to you to decide. • (CM) Products should have various prices and not only equal to the 3 coins accepted. . (CM) The VM calculates change and informs the client for the change returned on the screen with a message (e.g., displaying: "Change: €1.50. Please collect them in the slot below."). • (AM) Option for reloading each product with more items (change the quantity count). • (AM) Option to change the price for each product. • (AM) Option to add/delete a product. . (AM) Option to clear all quantities for all products. . (AM) All changes in this mode are saved (in a file or files) in order to be used at the CM.
Expert Answer:
Answer rating: 100% (QA)
To design the software of a Vending Machine using the C language with the specified requirements you ... View the full answer
Related Book For
Accounting Information Systems The Crossroads of Accounting & IT
ISBN: 978-0132991322
2nd Edition
Authors: Donna Kay, Ali Ovlia
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Suppose that in a wave of pessimism, housing prices fall by 10% across the entire economy. a. Has the stock of real assets of the economy changed? b. Are individuals less wealthy? c. Can you...
-
List specific changes that Apple has made to its Code of Conduct in recent years. Provide at least one (1) example of each change. Explain the identified changes to the suppliers in such a way that...
-
An automobile travels at 30 mph, which is also the speed of the center C of the tire (Figure P8.1). If the outer radius of the tire is 15 in., determine the rotational velocity of the tire in the...
-
Heritage, a general contractor, had filed a breach of contract action against an electrical subcontracting firm that had withdrawn its bid right before the contract was to be performed. A jury had...
-
Kick and Swing Inc. is a wholesaler of sporting goods equipment for retailers in a local metropolitan area. The company buys sporting goods equipment direct from manufacturers and then resells them...
-
Vanessa went to Florida and purchased a laptop for US$920.00 by converting his Canadian money at an exchange rate of C$1 = US$0.9254. After a month, he returned to Vancouver but the exchange rate...
-
In The Sociological Imagination, C. Wright Mills described sociology as the intersection of biography and history and defined the sociological imagination as the ability to see the connections...
-
In January 2019, United Airlines (UAL) had a market capitalization of $22.74 billion, debt of $13.19 billion, and cash of $3.84 billion. United Airlines had revenues of $41.06 billion. Southwest...
-
List four things you do that could cause externalities. For each, indicate whether you consider the effects on others when you make your decisions, and whether any policies are in place to help you...
-
An open feedwater heater is used to take inlet stream of water vapor at 5 bar and 200C and have it leave as saturated liquid at 5 bar. This is accomplished by mixing it with an appropriate amount of...
-
For each of the following externalities, explain the underlying source of inefficiency (what effects are felt beyond the decision maker) and suggest a solution that could bring the activity to its...
-
Consider a tank containing 100 kg of water initially at 70C. Due to heat transfer, the temperature of water in the tank drops to 50C. The surroundings are at 10C. Calculate the lost work.
-
Two point charges are arranged along the x-axis; q1=2.0 C is at x=0.80m, and q2=2.0 C at x=0.80m. The net electrical potential measured at the origin due to these point charges is
-
Suppose the S&P 500 futures price is 1000, = 30%, r = 5%, = 5%, T = 1, and n = 3. a. What are the prices of European calls and puts for K = $1000? Why do you find the prices to be equal? b. What...
-
Match the following terms and definitions. a. IT architecture b. computer architecture c. network architecture d. system software e. application software f. patch g. real-time h. batch ___ 1. A small...
-
To meet a tight deadline, you download spreadsheet files to your company laptop to take work home with you. What are the risks to safeguarding the information on your laptop?
-
Why is knowledge of XBRL important to accounting professionals? Explain.
-
Motion pictures and television programs are responsible for a misconception about the way in which trials proceed. Explain.
-
Describe the basic difference between the systems of courts in the United States and in Canada.
-
Explain why a legal rule in one province may differ from that in another province.
Study smarter with the SolutionInn App