What it does & How we built it

The challenge involved creating a program, which asked the user for an input of 3 potential food types unique item ID and price for each (cake, apples and milk). The user would be prompted for the quantity, and the desired item would be added to the user's cart. If the quantity is greater than 15, the quanity is invalid and the user would have to select the item and quantity again. When satisfied, the user can input a character which would finalise their cart, and the total price would be recorded.

This algorithm is very cardinal to the method in which grocery shopping works, though on a smaller scale. The applications of this are nigh endless.

Built With

Share this project:

Updates