Question: Write a program that manipulates a database of product records. Records are stored in a binary file. Each record consists of these items: Product
Write a program that manipulates a database of product records. Records are stored in a binary file. Each record consists of these items:
• Product name: 30 characters at two bytes each = 60 bytes
• Price: one double = 8 bytes
• Quantity: one int = 8 bytes The program should allow the user to add a record, find a record that matches a product name, and change the price and quantity of a product by a given amount.
Step by Step Solution
3.39 Rating (158 Votes )
There are 3 Steps involved in it
This task involves the understanding of file handling binary files and structuring of data In Python we can achieve this by structuring data in a dict... View full answer
Get step-by-step solutions from verified subject matter experts
