Upload
mahabubur-rahman
View
121
Download
0
Embed Size (px)
Citation preview
2
Task1 SPM
TASK-1Problem:
The company manager requires the following reports:
Report 1
A list of all purchases made in the preceding year, by customer number, listing stock item, date, number purchased and amount paid.
Report 2
A weekly list of the total number of items purchased, by stock item, listing number sold, purchase price and total cash received for each stock item.
Report 3
A weekly list of the total stock in the shop, by stock item, listing stock item, number sold that week, number delivered to the shop that week and supplier’s name.
Using JSP techniques and methodology, analyse the requirements for all three reports. Produce diagrams for each report showing the step-wise progression, including logical data structure diagrams (DSDs) and preliminary program structures (PSDs) as well as the detailed program specification for each report.
Introduction:
This assignment is based on the analysis and design of a stock management system for a bicycle shop which sells bicycles (mountain bikes, road bikes, bmx, etc.) and bicycle accessories (helmets, pumps, gears, etc.).
These tasks will be complete with several kinds of programming method and techniques when developing computer programs. Every task has completed with specific method condition.
Data Structure Diagrams (DSDs):
Prepared by Mahabubur Rahman
3Purchase
Table
Purchase Record
No. purchased
DateStock itemCustomer Number
Task1 SPM
Data Structure Diagram (DSD) can be thought of as graphical representation of DD entries such that the composition of each data item is shown in terms of the connected data items below it. The DSD notation corresponds, in effect, to a graphical version of the DD composition specification BNF.
Report-1
A list of all purchases made in the preceding year, by customer number, listing stock item, date, number purchased and amount paid.
Figure: data structure diagram - report 1
Report 2
A weekly list of the total number of items purchased, by stock item, listing number sold, purchase price and total cash received for each stock item.
Prepared by Mahabubur Rahman
4
Total Amount
Purchase ID
Purchase Table
Purchase Record
No. purchased
DateStock itemCustomer Number
Weekly Record
Stock
Stock Record
Task1 SPM
Figure: data structure diagram - report 2
Report 3
A weekly list of the total stock in the shop, by stock item, listing stock item, number sold that week, number delivered to the shop that week and supplier’s name.
Prepared by Mahabubur Rahman
5
Report 1
All stock InformationReport TitleDisplay Table HeaderDisplay Purchase Info
Report 2
Total Cash received
Report TitleDisplay Table HeaderDisplay Weekly purchase Info
Task1 SPM
Figure: data structure diagram - report 3
Program structure diagrams (PSDs):
Report-1:
Figure: program structure diagram - report 1
Report-2:
Prepared by Mahabubur Rahman
6Report 3
No. of Sold Report TitleTotal Stock information Supplier details
Task1 SPM
Figure: program structure diagram - report 2
Report-3:
Figure: program structure diagram - report 3
Prepared by Mahabubur Rahman