Question: Add Records to the Inventory File Open PyCharm IDE. Create a new Python file and name it AddRecords.py. Complete the assignment task stated below: Write
Add Records to the Inventory File Open PyCharm IDE. Create a new Python file and name it AddRecords.py. Complete the assignment task stated below: Write a Python program that prompts the user to enter the description and quantity of coffee in inventory. Append these records to the inventory file, ensuring new records are added to the file's existing contents. Run your code to ensure it correctly adds records to the inventory file. Save your file. Part 2: Display All Records in the Inventory File Open PyCharm IDE. Create a new Python file and name it DisplayRecords.py. Complete the assignment task stated below: Write a Python program that reads and displays all records from the inventory file in a formatted manner. Run your code to ensure it correctly displays all records. Save your file. Part 3: Modify the Quantity Field in an Existing Record Open PyCharm IDE. Create a new Python file and name it ModifyQuantity.py. Complete the assignment task stated below: Write a Python program that allows the user to modify the quantity field of an existing coffee record. Create a second temporary file. Copy all records from the original file to the temporary file, modifying the specified record. Replace the original file with the temporary file. Run your code to ensure it correctly modifies the quantity field. Save your file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
