write a C program on this Create an Inventory Control Program, called ICP.exe. T
ID: 3870058 • Letter: W
Question
write a C program on this Create an Inventory Control Program, called ICP.exe. This program will provide the user with a menu of actions to control inventory, which include: list the inventory, create an item, add inventory, remove inventory, delete item, import and export database. An inventory item has a: Unique ID, Part NO, Names, Quantity, and Sale Price, and Unit Price. Load a database with the following items: 1. SNK809a Seiko Automatic Men's Watch, 10, $75, $70. 2. SR400 Yamaha 400cc Motorcycle, 3, $5,999, $4,000. 3. Soundlink-Coral Bose Bluetooth Speaker in Coral Red, 20, $129, $89. Demonstrate loading/creating a database of inventory, creating new items, adding to inventory, removing from inventory, and saving the database. Capture your output with the snipping tool. A menu might look like the following, but the student is free to create a different interface, if it is more intuitive. c:usersdbs0011icp.exe Welcome to the Inventory Control Program! select from the following (L)ist, (C)reate, (A)dd, (R)emove, (I)mport, or (E)xport:> I enter the DB name to import:> first.db first.db imported. select from the following (L)ist, (C)reate, (A)dd, (R)emove, (I)mport, or (E)xport:> I Build the Import and Export functions last as we will not cover files until right before the end of this project. Use dynamic memory allocation for your records. Each interface option should be a separate function. Use structures to define your inventory items. Use separate C files to encapsulate your user interface, data storage and test functions.
Explanation / Answer
#include void main() { struct date { int day; int month; int year; }; struct details { char name[20]; int price; int code; int qty; struct date mfg; }; struct details item[50]; int n, i; printf("Enter number of items:"); scanf("%d", &n); fflush(stdin); for (i = 0; iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.