Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Vending Machine Description: XCoke Company delivered new Vending Machine for TRNC; the new machine has ability to accept payment by banknotes, coins and bankcards. Customer

image text in transcribed

Vending Machine Description: XCoke Company delivered new Vending Machine for TRNC; the new machine has ability to accept payment by banknotes, coins and bankcards. Customer can chose the type of payment, and insert the target amount into the socket, if the inserted amount is greater that the product fees the machine should return the remaining money to the customer and then release the product. The machine has a set of sockets for the products, where every socket contains a specified amount of products Example, eight products. If product socket empty, and the user entered code of socket, the machine must show "Attention about the product state. The machine should ask the customer if he want different product, else the machine must return the money back to the customer. The company has two employees, accountant and driver. The accountant is responsible about the accounting of sales, relationship with merchants, pricing and interaction with machine merchant technical and accounting stuff for solving issues. The driver has the locations of all vending machine. In regular basis, he must plane a route for filling machines with products. Driver must plane the best route for travelling all cities with minimal driving distance. Also he responsible of collecting money from machine, and reporting to the main office (accounting) about the last updated state of the machines, the company use Website for reporting from the driver, however, they have Desktop Application for retrieving the reports, and manage the accounting. User purchase scenario: 1. Customer select money socket 2. Customer inserting an amount of money (recommended amount is the same product fees) 3. Select the product from the key board 4. If payment is adequate for buying the product, machine release the product, returns the remaining amount, finally, machine entered to waiting mode for next customer. You need to apply this project using C language code. Information about machine and products must be saved into a file. For example the product list, product prices, and the list of transactions must be written to file, on the other hand, the reports must be done with respect to contents of files. Every machine must have files that declare its parameters such as id, location, and max product mount etc. Best practices: use structures, functions, pointers and static primitive data type if needed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

What is total quality management (TQM)?

Answered: 1 week ago