Question: i need this as a code in C language plz XCoke Company delivered new Vending Machine for TRNC; the new machine has ability to accept

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. Example of transaction files contents: # 1 2 3 date 23/12/2021 22/12/2021 22/12/2021 product_code 123456 123456 123446 prduct_details Snickers Snickers Snickers Jumbo product_price remaining 5.5 10 5.5 11 5.5 4 . Important Notes: You must apply system calls and library functions in your code The code must be applied in Linux environment and using GCC compiler The code will be evaluated with respect to functionality requested in advance Please submit the project in time and make sure to follow the program requirements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
