*** Hardware Inventory Program ***
What would you like to do?
Enter
1 to insert a new item into the datatbase
2 to list all the tools in the database
3 to delete an item from the database
4 to update the information about an item in the database
5 to initialize the database
Type any other number to quit
--> 1
Enter the item number for the new item: 24
What is the name of the item? Jig saw
How many items are on hand? 21
What is the unit cost? 11.00
What would you like to do?
Enter
1 to insert a new item into the datatbase
2 to list all the tools in the database
3 to delete an item from the database
4 to update the information about an item in the database
5 to initialize the database
Type any other number to quit
--> 1
Enter the item number for the new item: 3
What is the name of the item? Electric sander
How many items are on hand? 7
What is the unit cost? 57.98
What would you like to do?
Enter
1 to insert a new item into the datatbase
2 to list all the tools in the database
3 to delete an item from the database
4 to update the information about an item in the database
5 to initialize the database
Type any other number to quit
--> 2
*** List of Items in the Inventory ***
3 Electric sander 7 $57.98
24 Jig saw 21 $11.00
What would you like to do?
Enter
1 to insert a new item into the datatbase
2 to list all the tools in the database
3 to delete an item from the database
4 to update the information about an item in the database
5 to initialize the database
Type any other number to quit
--> 3
Enter the item number of the item you would like to delete: 3
Item 3 has been deleted.
What would you like to do?
Enter
1 to inser a new item into the database
2 to list all the tools in the database
3 to delete an item from the database
4 to update the information about an item in the database
5 to initialize the database
Type any other number to quit
--> 4
Enter the item number of the item you would like to update: 24
Do you want to update the quantity (enter 1) or the price (enter 2)? 1
Enter the new quantity: 51
Item 24 has been updated.
What would you like to do?
Enter
1 to insert a new item into the datatbase
2 to list all the tools in the database
3 to delete an item from the database
4 to update the information about an item in the database
5 to initialize the database
Type any other number to quit
--> 2
*** List of Items in the Inventory ***
24 Jig saw 51 $11.00
What would you like to do?
Enter
1 to insert a new item into the datatbase
2 to list all the tools in the database
3 to delete an item from the database
4 to update the information about an item in the database
5 to initialize the database
Type any other number to quit
--> 0
Program terminating.
/cs/bin/turnin submit cs2301 PROJECT6 inventory.c README.txt
Programs submitted after 5pm on December 13 will be tagged as late, and will be subject to the late homework policy.