Professional Documents
Culture Documents
Assignment#1 Object Oriented Programming
Assignment#1 Object Oriented Programming
Total Marks: 30
Objective: In this assignment you will develop a menu-driven console application for inventory
management that demonstrates the
Introduction
Inventory management software- often utilized by Departmental stores- is a type of software
used for storing information about the items or goods, its sale/purchase, reporting etc. You are required
to develop an Inventory management application for TEST DEPARTMENTAL STORE. The application will
store data in three different files explained in following paragraphs.
Stock Records:
Data about items in stock are stored in a file named stock.DB. Each line in stock.DB file is a record of
product held in the TEST DEPARTMENTAL STORE. Specifically a stock record contains code (that uniquely
identify the item), its name, the type of item, the manufacturer, the price, any discount available to
customer and the quantity of that item held in the store. An example of this file is shown in the following
figure.
Sales Record
Information about all sales transaction are stored in the Sale.DB file. Each sale record
include InvoiceNo (uniquely identify sale transaction), the date-time at which the transaction is made,
the name of customer, the no of items sold and the total amount of bill paid. Following figure shows the
an example Sale.DB file.
Purchase Record
Information about all purchases made by the storeowner are stored in the purchase.DB
file. Each purchase record include InvoiceNo (uniquely identify the purchase transaction), the name of
supplier, name of product purchased, its type, the name of manufacturer of product, the retail price of
product, cost of the product and the units purchased. Following figure shows an example Purchase.DB
file.
Required functionality
You application will be used by the storeowner for sale, purchase transactions and producing
the reports.
Each stock record is stored in a user defined data type created through structure.
Sales and purchase records are also stored in variables of user-defined types.
On start of the application, data from files are loaded into an array of structure.
A menu similar to Fig. 1 is shown to the user.
User enter the menu no, the input is validated, and appropriate functions are called.
Separate functions are used for different operations like loading stock, printing the menus,
searching for stock, doing the sale, purchase, printing reports etc.
The use cases are depicted in the following images
________________________________________________________________________
MAIN MENU
1 – PRINT STOCK
2 – SEARCH ITEM
3 – SALE
4 – SALE REPORT
5 – PURCHASE
6 – PURCHASE REPORT
7 – EXIT
________________________________________________________________________
== STOCK REPORT==
________________________________________________________________________
1 BlueMarker stationary 50 0 50
________________________________________________________________________
2 – SEARCH ITEM
________________________________________________________________________
== ITEM SEARCH==
________________________________________________________________________
________________________________________________________________________
1 BlueMarker stationary 50 0 50
3 – SALE
________________________________________________________________________
== SALE TRANSACTION==
________________________________________________________________________
== SALE TRANSACTION==
CUSTOMER: ABDUL
InvoiceNo: 1
________________________________________________________________________
1 BlueMarker 1 50 50
________________________________________________________________________
== SALE TRANSACTION==
CUSTOMER: ABDUL
InvoiceNo: 1
________________________________________________________________________
1 BlueMarker 1 50 50
2 Pencil 10 10 100
________________________________________________________________________________________
== SALES REPORT==
________________________________________________________________________________________
5 – PURCHASE
________________________________________________________________________
== PURCHASE==
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
== PURCHASE==
SUPPLIER: ABC SUPPLIER
InvoiceNo: 1
________________________________________________________________________
(ADD ANOTHER)?: : N
________________________________________________________________________
6 – PURCHASE REPORT
_______________________________________________________________________________________________________
== PURCHASE REPORT==
_______________________________________________________________________________________________________