Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need this question to be solve in c language plz and with all the details Description: XCoke Company delivered new Vending Machine for TRNC;

i need this question to be solve in c language plz and with all the details
image text in transcribed
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, eke 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 be 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 seenario: 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 keyboard 4. If payment is adequate for buying the product, machine release the product. returns the remaining amount, finally, machine entered to wasting mode for next customer You need to apply this project using 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 filc, 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: date product_code prduct details 1 23/12/2021 123456 Snickers 22/12/2021 123456 Satchers 3 22/12/2021 123405 Snickers Jumbo product_price remaining 5.5 ze 5.5 11 3.5 Important Notes: . You must apply system calls and library functions in your code The code wwt be applied in Limax environment and using GCC compiler The code will be evaluated with respect to functionality requested in advance . Please shmit the project in time and make sure to follow the program requirements

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

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions

Question

What is the environment we are trying to create?

Answered: 1 week ago

Question

How would we like to see ourselves?

Answered: 1 week ago