Question
Write a C Program You are maintaining an inventory for a store. What type of store is up to you. Some ideas: bookstore, music store,
Write a C Program
You are maintaining an inventory for a store. What type of store is up to you. Some ideas: bookstore, music store, pet store, etc...
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 let me search your inventory using any 3 methods (of your choice - for books, could be by title, author, 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 be fault tolerant, allowing for possible user error. Your program should also be as user friendly as you can make it. 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started