Question: please explain code in detail This program will have you creating the beginnings of a simple database. We are going to simulate the management of
please explain code in detail
This program will have you creating the beginnings of a simple database. We are going to simulate the management of a school store that sells four types of items: Pens, Paper, Pencils, and Notebooks. The current inventory will be stored on a .txt file named "storeInventory.txt", whereby each line of the file will contain the following ORDERED list of information: itemName, amountRemaining, itemCost For example, the file could be initially formatted as follows: Pen, 50, 1.25 Paper, 500, 0.25 Pencil, 50, 0.75 Notebook, 20, 3.00 Create a program that reads the information from this file and allows the user to perform the following actions/functions: 1. Search Item - looks up an item and outputs the current inventory of that item and it's cost. 2. Purchase Item - ask user what item is to be purchased, then how many are purchased; outputs the total amount owed and updates the .txt file to reflect the remaining inventory of that item
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
