Write a program in python with no imports that the owner of Chica Chic could use to store data about her inventory in a text file . The program should prompt her to input the name, cost price, and...


Write a program in python with no imports that the owner of Chica Chic could use to store data about her inventory in a
text 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 Output
Enter the name of the inventory item or ENTER to quittops

Enter the cost price of this item24.99

Enter the quantity in stock of this item10

A record was written to file
Enter the name of the inventory item or ENTER to quitshorts

Enter the cost price of this item29.95

Enter the quantity in stock of this item12

A record was written to file
Enter the name of the inventory item or ENTER to quitsandals

Enter the cost price of this item19.79

Enter the quantity in stock of this item8

A record was written to file
Enter the name of the inventory item or ENTER to quit
The file was created successfully and closed



program6_2.py

Now 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 Output
Chica Chic Inventory


tops, $24.99 each, 10 in stock, value $249.90
shorts, $29.95 each, 12 in stock, value $359.40
sandals, $19.79 each, 8 in stock, value $158.32
End of file
Total inventory value $767.62

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here