Write a program in python with no imports that the owner of Chica Chic could use to store data about her inventory in atext file. The program should prompt her to input the name, cost price, and quantity of each item of inventory. Each of these three data has to be written to itsown line in the file. The program shouldloop to enable any number of inventory items to be stored andend when the item name is left blank (see Sample Output. User inputs are shown inblue). The program should end by closing the file and printing a file status message.Sample OutputEnter the name of the inventory item or ENTER to quittopsEnter the cost price of this item24.99Enter the quantity in stock of this item10A record was written to fileEnter the name of the inventory item or ENTER to quitshortsEnter the cost price of this item29.95Enter the quantity in stock of this item12A record was written to fileEnter the name of the inventory item or ENTER to quitsandalsEnter the cost price of this item19.79Enter the quantity in stock of this item8A record was written to fileEnter the name of the inventory item or ENTER to quitThe file was created successfully and closed
program6_2.pyNow write another program that reads her inventory file, displays all data for each item, and reports on the inventory value. The cost value ofeach item and thecost value of the total inventory should be reported.Strive to duplicate the Sample Output below.Sample OutputChica Chic Inventory
tops, $24.99 each, 10 in stock, value $249.90shorts, $29.95 each, 12 in stock, value $359.40sandals, $19.79 each, 8 in stock, value $158.32End of fileTotal inventory value $767.62
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here