Inventory Control System
Please read the submission requirements at the end of this document carefully and
make sure your program complies with ALL requirements.
The Inventory Control System allows a business to keep track of its inventory and profits
allowing the owner to order supplies and track sales. Up to 10 different items can be
tracked.
Write the inventory control system with the following features:
1. The program uses an array of 10 structures. Each structure should hold the name of
the item, the cost of the item, the number of items in stock, the total profit for the item
and the total profit for all items.
2. The program is to displays the following menu. Use a switch to make the selection.
Each selection should call a different function.
To choose a function, enter its letter label:
a) Show the names and number of each item in stock including the cost of
each item and total value of each item in stock.
b) Show the number of units sold each time, the profit for each item in stock
and the total store profit
c) Allow the owner to order more of existing items
d) Allow the owner to order new items
e) Allow the owner to enter the sale of items
f) Quit
3. Assume that the selling price is 50% greater than the latest purchase cost of an
item.
4. The program must successfully execute the premise of the menu. Choices c) d) and
e) require additional input..
5. Data is to be saved to a file between runs. When the program is restarted, it must first
load the last status of items in stock, their cost and profit..
6. Do not use global variables. (except for the structure definition and data I/O).
7. For each item you must keep track of the item’s name, latest purchase price,
number of items in stock, number of items sold, total profit from sales.
Submission requirements:
Submit the project requirements stapled in the top left corner.
The marks will be assigned on the following basis:
1. Complete Project Documents (1 Marks) - including a proper
Structured Diagram and Source Code.
2. Program Format (1 marks) - programmer’s block, indentation, and
adequate comments (only where appropriate)
3. User Interface (1 mark) - appearance to users, ease of use, checking
for out of range input
4. Functionality and Structure (6 Marks)
The basic functions/features for the application as required.
5. Data I/O to disk (1 Mark)
Maximum mark = 10
Try to make your program easy to use, intuitive and pleasing to the eye.
Sample Displays.
#include
#include
#include
#define MAX 5
void explanProg(void);
void showStock(void);
void showProfit(void);
void orderProg(void);
void orderNewProg(void);
void saleProg(void);
int main(void)
{
char option;
explanProg();
printf("Please Enter your option:");
scanf_s("%c", option);
switch (option) {
case'a':
showStock();
break;
case'b':
showProfit();
break;
case'c':
orderProg();
break;
case'd':
orderNewProg();
break;
case'e':
saleProg();
break;
case'f':
break;
default:
printf("Invalid data\n");
}
system("pause");
return 0;
}
void showStock(void) {
system("cls");
printf("showStock\n");
return;
}
void showProfit(void) {
system("cls");
printf("showProfit\n");
return;
}
void orderProg(void) {
system("cls");
printf("orderProg\n");
return;
}
void orderNewProg(void) {
system("cls");
printf("orderNewProg\n");
return;
}
void saleProg(void) {
system("cls");
printf("saleProg\n");
return;
}
void explanProg(void) {
printf("This is Inventory Control System.\n");
printf("a) Show the names and number of each item in stock including the
cost of each item and total value of each item in stock.\n");
printf("b) Show the number of units sold each time, the profit for each
item in stock and the total store profit\n");
printf("c) Allow the owner to order more of existing items\n");
printf("d) Allow the owner to order new items\ne) Allow the owner to enter
the sale of items\nf) Quit\n");
}