0% found this document useful (0 votes)
32 views4 pages

J1.L.P0018. Store Management at Convenience Store-500

This document outlines the specifications for a store management program that allows users to manage products, import/export receipts, and generate reports. The program will have functions to add, update, delete and view products; create import and export receipts; and generate reports on expired products, products for sale, low stock products, and import/export history of a product. The program is required to store product and warehouse data to files and implement object-oriented programming principles.

Uploaded by

Hoàng Phạm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views4 pages

J1.L.P0018. Store Management at Convenience Store-500

This document outlines the specifications for a store management program that allows users to manage products, import/export receipts, and generate reports. The program will have functions to add, update, delete and view products; create import and export receipts; and generate reports on expired products, products for sale, low stock products, and import/export history of a product. The program is required to store product and warehouse data to files and implement object-oriented programming principles.

Uploaded by

Hoàng Phạm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Type: Long Assignment

Code: J1.L.P0018
LOC: 500
LAB 211 Assignment Slot(s): N/A

Title

Store Management at Convenience Store


Background

A convenience store sells 2 groups of products: products for daily use (bread, dumplings, sticky rice, ...) and
products with long shelf life such as cookies, soft drinks, filtered water, .... The product.dat file is used to store
information of all products in the Store. The Warehouse.dat file has stored import/export information. Each
import/export receipt can contain many different items with different quantities.
Program Specifications

Build a management program. With the following basic functions

0. Build your data structure


1. Manage products
1.1. Add a product
1.2. Update product information.
1.3. Delete product.
1.4. Show all product.
2. Manage Warehouse
2.1. Create an import receipt.
2.2. Create an export receipt.
3. Report
3.1. Products that have expired
3.2. The products that the store is selling.
3.3. Products that are running out of stock (sorted in ascending order).
3.4. Import/export receipt of a product.
4. Store data to files
5. Exit.

Each menu choice should invoke an appropriate function to perform the selected menu item. Your program
must display the menu after each task and wait for the user to select another option until the user chooses to
quit the program.
Features:
This system contains the following functions:
Display a menu and ask users to select an option.
0. Build your data structure (80 LOCs)
- Product information: product code, product name, manufacturing date, expiration date, and other
attributes.
- Warehouse Information: the import/export code is a self-incrementing 7-digit number, the time to
create the import/export slip is taken from the system time. Each input/output code can contain
many different items with different quantities.
- Classes, abstract classes, Interfaces.
- Must implement the polymorphism properties of object-oriented programming.
1. Manage products/items of the store:
1.1. Add a product. (30 LOCs)
 Create a submenu.
 Remember that the constraints must be checked: product code can not duplicate
 Add the new product to collection.
 Ask to continuous create new product or go back to the main menu.
1.2. Update product information. (50 LOCs)
 Require enter the product code
 If product code does not exist, the notification “Product does not exist”.
Otherwise, we can start input new information of product and update.
 If new information is blank, then not change old information.
 Remember new information must be validated.
 System must print out the result of the updating.
 After updating, the program returns to the main screen.

When changing product information, the corresponding information must be adjusted


on the import/export receipts.

1.3. Delete product. (20 LOCs)


 Require enter the product code
 Before the delete system must show confirm message.
 Show the result of the delete: success or fail.
 After delete, the program returns to the main screen.

Note, only remove the product from the store's list when the import / export
information for this product has not been generated.
1.4. Show all product. (20 LOCs).
 Show all data in the product.dat or product’s collection file into the screen.
2. Warehouse management
2.1. Create an import receipt. (50 LOCs)
 Create a submenu.
 Remember that the constraints must be checked: productCode
 Add the new product to the import receipt.
 Ask to continuous add new product or show confirm message.
 After confirm, the result of the import receipt: success or fail.
 After confirm, the program returns to the main screen.
2.2. Create an export receipt. (100 LOCs)
 Create a submenu.
 Remember that the constraints must be checked: productCode, quantity within
expiry date
 Add the new product to the export receipt.
 Ask to continuous add new product or show confirm message.
 After confirm, the result of the export receipt: success or fail.
 After confirm, the program returns to the main screen.
3. Report
3.1.Products that have expired. (25 LOCs)
 The system searches the product list, and returns all product that has
manufacturing date greater than expiration date.
 Show result list: product code, product name, production date, expiration date,
quantity
 The program returns to the main screen.
3.2.The products that the store is selling. (25 LOCs)
 The system searches the product list, and returns all product that has
manufacturing date less than or equal than expiration date.
 Show result list: product code, product name, production date, expiration date,
quantity
 The program returns to the main screen.
3.3.Products that are running out of stock (sorted in ascending order). (25 LOCs)
 The system searches the product list, and returns all product that has
manufacturing date less than or equal than expiration date.
 Show result list: product code, product name, production date, expiration date,
quantity
 Sorted in ascending order by quantity
 The program returns to the main screen.
3.4.Import/export receipt of a product. (25 LOCs)
 Require enter the product code
 If product code does not exist, the notification “Product does not exist”.
 Show product’s data in the warehouse.dat file or warehouse’s collection into the
screen.
 The program returns to the main screen.
4. Store data to files. (50 LOCs)
 Store list product to product.dat file.
 Store list warehouse information to warehouse.dat file.

The above specifications are only basic information; you must perform a requirements analysis step
and build the application according to real requirements.
The lecturer will explain the requirement only once on the first slot of the assignment.

You might also like