Uploaded by Vikash Kataria

FINAL PROJECT - Inventory Control System 0(1)

advertisement
Prof. Jimmy Dzambazov
PRG255 Final Project
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 project is worth 15% of your final PRG 255 mark.
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 item identification number, 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 display 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 name, identification number 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 an existing item
d) Allow the owner to order new items
e) Allow the owner to enter the sale of an 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).
Prof. Jimmy Dzambazov
Prof. Jimmy Dzambazov
7. For each item you must keep track of the item’s name and Id number, latest
purchase price, number of items in stock, number of items sold, total profit from
sales.
Submission requirements:
•
The first page is the cover page. (Word or PDF document)
•
The second page is the signed Honesty Declaration form. If this is not submitted,
your project will not be evaluated and you will receive a mark of 0. No reminder
will be provided. (Word or PDF document)
•
The source code file (. C file) You must include a Programmers block and an
explanation function in your code.
This project is due the week of August 10 to 12 2021. The project must be submitted to
the Project Submission folder for your lab section before the end of your assigned lab
period. You can submit the project before the due date but No Late submissions will be
accepted.
Under no circumstances will an extension be granted for this project.
Please note that the project folder will not be available after this time and
you will receive a mark of 0 for the project.
The project is worth 15% of your final PRG 255 mark.
This is an individual project.
Plagiarism will be prosecuted in accordance with Seneca’s policy.
Evaluation :
•
the code is properly formatted (2 marks)
•
the code complies with the specification and uses one function for
each choice in the menu and one function to show the menu (7
marks)
•
the program compiles and runs without errors (1 marks)
•
the data can be saved to a file and retrieved from the file without
error.
(3 marks)
Prof. Jimmy Dzambazov
Prof. Jimmy Dzambazov
•
The program should look clean and attractive and the user interface is
to be user friendly and intuitive. (2 marks)
Maximum mark = 15
Try to make your program easy to use, intuitive and pleasing to the eye.
Sample Displays.
a. Display items in inventory….
Item Name
Id Number
Hammer
Saw
22345
34556
Quantity
34
10
Unit Cost
Value
$10.00
$12.20
$340.00
$122.00
b. Show the number of units of each type sold, profit of each item and total profit
Item Name
Hammer
Saw
Id Number
Quantity Sold Item Profit
22345
34556
Total Profit
14
6
70.00
36.60
106.60
The cover page should look as follows:
Name:
Student Number
Lecture Section
Lab Section
Marks:
Format (2)
_____
Program Compiles (1)
_____
Functionality (7)
_____
Data I/O to disk (3)
_____
User interface (2)
_____
Total
_____
15
Prof. Jimmy Dzambazov
Prof. Jimmy Dzambazov
Student Project Honesty Declaration
I declare that the Project completed for my PRG255 course for the Summer 2021 Semester
is my own work in accordance with Seneca Academic Policy.
Refer to section 9 of the Academic Policy for details, or view it online at:
www.senecac.on.ca/home/academic_policy
No part of this assignment has been copied manually or electronically from any other
source or distributed to other students. This includes any and all of the code contained
within the program. I have not allowed another person to view or copy my program.
Print Your Name: ___________________________________________
Student Number: ___________________________________________
Class Section: _____ ________________________________________
Signature: _________________________________________________
Date Signed: _______________________________________________
.
Prof. Jimmy Dzambazov
Download