Professional Documents
Culture Documents
Lakshmi Mces Finalreport
Lakshmi Mces Finalreport
ASSIGNMENT-2
(Academic Year 2022-23)
CASE STUDY ON
VENDING MACHINE
Name: DENNIS M B
SL NO CONTENTS PAGE NO
10 REFERENCES 20
CHAPTER-1 INTRODUCTION
CHAPTER-1
INTRODUCTION
VENDING MACHINE
An embedded system is a specialized computing system designed to perform
dedicated functions or tasks. Unlike general-purpose computers, embedded
systems are tightly integrated into the products they control and are optimized for
specific applications. Vending machines, while seemingly straightforward,
exemplify the intricate nature of embedded systems.
CHAPTER-2
FEATURES OF VENDING MACHINE
Electric wheelchairs, as embedded system devices, are equipped with a wide range
of features that enhance mobility and usability for individuals with mobility
impairments. Here are some key features of electric wheelchairs:
Efficiency and Speed: Embedded systems in vending machines are
designed for real-time operations. This ensures that customers can quickly
make selections, complete transactions, and receive their chosen items
without significant delays. This efficiency is essential in high-traffic
locations where time is of the essence.
Reduced Labor Costs: Vending machines significantly reduce the need for
human intervention in the sales process. This leads to cost savings for
businesses, as they don't require on-site personnel to operate the machines
continuously.
CHAPTER-3
BLOCK DIAGRAM
CHAPTER-4
FLOWCHART
Is the Selected Item Valid? (Exists in Inventory): The vending machine checks if
the selected item is available in its inventory.
No (Invalid Selection): If the selected item is not valid (e.g., out of stock or
doesn't exist), the vending machine displays an "Invalid Selection" message and
ends the transaction
.
Yes: If the selected item is valid, the vending machine proceeds to accept payment.
Accept Payment: The customer inserts money or makes a payment using various
methods.
Is Payment Sufficient?: The vending machine checks if the payment covers the
cost of the selected item.
CHAPTER-5
SOFTWARE PROGRAM USED IN THE ELECTRIC
WHEELCHAIR
(C++ CODE)
#include <iostream>
#include <iomanip>
using namespace std;
// Define the items available in the vending machine
struct Item {
string name;
double price;
int quantity;
};
// Function to display the available items
void displayItems(const Item items[], int itemCount) {
cout << "Available Items:" << endl;
for (int i = 0; i < itemCount; i++) {
cout << i + 1 << ". " << items[i].name << " - $" << items[i].price;
if (items[i].quantity > 0) {
cout << " (" << items[i].quantity << " left)";
} else {
cout << " (Out of Stock)";
}
cout << endl;
}
}
int main() {
return 0;
}
CHAPTER-6
EXPLAINANTION OF THE LOGIC USED IN VENDING
MACHINE
Initialization: When the vending machine is powered on, it initializes its software
and hardware components. This may include loading the inventory, setting up
payment processing systems, and configuring the user interface.
Display Available Items: The vending machine displays a list of available items
to the customer. This includes the name, price, and the number of items left in
stock for each product.
User Selection: The customer selects an item they wish to purchase by either
pressing buttons or using a touchscreen interface. The vending machine waits for
the customer's input.
Item Selection Validation: The vending machine checks if the selected item is
valid (i.e., it exists in the inventory). If the selected item is not valid (e.g., out of
stock or doesn't exist), an error message is displayed, and the transaction is
canceled.
Dispensing Item: If the payment is successful and sufficient, the vending machine
dispenses the selected item to the customer. This involves releasing the product
into the retrieval area.
Change Dispensing: If the customer inserted more money than required, the
vending machine calculates and dispenses the correct change.
Error Handling: Throughout the process, the vending machine must handle
various error scenarios, such as coins getting stuck, bills being rejected, or system
malfunctions. It should display relevant error messages and take appropriate
actions, such as returning money or contacting maintenance.
CHAPTER-7
ADVANTAGES OF VENDING MACHINE AS EMBEDDED
SYSTEM DEVICE
CHAPTER-8
LIMITATIONS OF ELECTRIC WHEELCHAIR
2. Lack of Freshness:
Vending machines are not suitable for products that require freshness, such as
perishable foods. Items like fruits, vegetables, and dairy products are typically not
available in vending machines.
4. No Personal Interaction:
Vending machines lack the personal touch of human interaction. Customers cannot
ask questions, seek recommendations, or address concerns with a machine.
5. Reliability Issues:
Vending machines can experience technical issues, including product jams, coin or
bill acceptor malfunctions, or dispensing errors. These problems can inconvenience
customers and require maintenance.
7. Lack of Customization:
Vending machines may not offer customization options. Customers cannot request
special preparations or variations of products, which is possible in some traditional
stores.
CHAPTER-9
Healthcare Products:
Vending machines in healthcare facilities provide access to essential healthcare
products, such as over-the-counter medications, personal hygiene items, and first
aid supplies.
Automotive Supplies:
Vending machines in auto repair shops or gas stations provide essential automotive
supplies like oil, wiper blades, and light bulbs.
In response to the COVID-19 pandemic, vending machines stocked with PPE, such
as face masks, hand sanitizers, and gloves, have become more common in public
places.
CHAPTER-10
REFERENCES
https://en.wikipedia.org/wiki/Vending_machine
https://www.britannica.com/money/vending-machine