A Program for Food Vending Machine.

A Program for Food Vending Machine.

The program at prints the list of items and it's details. Each item has a code number, and to buy the item it takes the code number of the item as input then the cost of the item and give the product

Created on 9th April 2022

A Program for Food Vending Machine.

A Program for Food Vending Machine.

The program at prints the list of items and it's details. Each item has a code number, and to buy the item it takes the code number of the item as input then the cost of the item and give the product

The problem A Program for Food Vending Machine. solves

The problem it can solve is that it can be used in stores for creating smart vending machines supporting online payments. It erradicates the use of cash and provide a safe way to distribute food in airports, railway station and other important public places during this pandemic time.

Challenges we ran into

The challenges we ran into was that how we could print the data of items list while running the program. It was solved by using literal string interpolation or more commonly as f-strings while printing the item detils from the items list. Second was to prevent the program from ending abruptly. This was handled by setting a common flag variable(run_vend) as true when the user needs a new transaction else we used break statement to exit if the user wrongly entered other input. To close it in a legal way, we set the flag variable as false to exit the program.

Discussion

Builders also viewed

See more projects on Devfolio