Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code using C not C++ You are maintaining an inventory for a bookstore. You need a system that will let you enter your inventory (and

Code using C not C++

You are maintaining an inventory for a bookstore.

You need a system that will let you enter your inventory (and store it in a file). You also should be able to sort it, and update it. For the items in your inventory, you will be keeping track of its basic information (i.e. for books: name, publisher, year, author, pages, price).

Your system will allow you to keep track of who purchases the items from your store (name, address, telephone, what they bought, how much they paid). This information is also to be stored in a file (separate from the inventory file).

Your program should open with a menu that allows me to see your inventory (provide at least 3 ways of looking at your inventory - unsorted, and 2 sorted views - the sorted views are up to you). You could use a sorted view for the bookstore such as sorted by title or author, for example.

Your program should search your inventory by title, author, and year

Your program should let me then enter a customer's data and what they bought. I should then also be able to see the list of customer's (sorted and unsorted) and also search the customer list based upon any 3 methods (of your choice - for example, by name, city, and phone).

Finally, I should be able to delete inventory or customers as well.

Your program should may consist of more than 1 .c file. For example, you could group your inventory functions into one .c file, and then your customer functions into another.

Your information should be read from files at the start of your program and stored into lists (arrays or linked lists - your choice). When the program ends, you write that data back out. While the program is running, you should of course write out any changes made to data; that way, if the program crashes you will not have lost all the changes made before the crash. Of course, if you make your program fault tolerant, crashes won't occur that often.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

LO1 Identify why performance management is necessary.

Answered: 1 week ago