Write a program that manipulates a database of product records. Records are stored in a binary file.

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: