0% found this document useful (0 votes)
122 views19 pages

Analysis, Design and Implementation

This document contains an assignment for the module "Analysis, Design and Implementation" submitted in March 2014. It includes tasks to design classes, activity diagrams, use case diagrams, and code for a camera buying guide system called Camsort. The assignment received final marks after moderator review.
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)
122 views19 pages

Analysis, Design and Implementation

This document contains an assignment for the module "Analysis, Design and Implementation" submitted in March 2014. It includes tasks to design classes, activity diagrams, use case diagrams, and code for a camera buying guide system called Camsort. The assignment received final marks after moderator review.
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/ 19

MODULE:

ANALYSIS, DESIGN AND IMPLEMENTATION

ASSIGNEMENT TITLE:
CAMSORT

MARCH 2014

Marker’s Comments:

Moderator’s Comments:

Mark Moderated Final


Mark: Mark:

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
Statement and Confirmation of Own Work

Programme/Qualification Name:

Each NCC Education assessed assignment submitted by you must have this statement
attached to the assignment as the cover page or it will not be accepted for marking. Please
ensure that this statement is either firmly attached to the cover of the assignment or
electronically inserted into the front of the assignment.

Student Declaration:

I have read and understood NCC Education’s Policy on Academic Dishonesty and
Plagiarism.

I can confirm the following details:

Student ID/Registration Number:


Name:
Centre Name: Daffodil Institute of IT
Module Name: Analysis, Design and Implementation
Module Leader: MD. Ashek Mahmud
Number of words: 1700

I confirm that this is my own work and that I have not plagiarized any part of it. I have also
noted the assessment criteria and pass mark for assignments.

Due Date: March 2014


Student Signature:
Submitted Date: March 2014PROGRAMMES

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
Table of Contents:

Serial No. Topic Content Page No.


01. Introduction 04
02. Task 1: Candidate Class List and Diagrams 04-06
03. Task 2: Activity Diagram 07
04. Task 3: Use Case Diagram 08
05. Task 4: Code Architecture 09-14
06. Task 5: Command Implementation 15-17
07. Conclusion 18
08. Bibliography 19

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
Introduction: In this assignment, I am going to develop a buying guide system for
camera shop named Camsort which rates camera equipment. The business is
operated in online, so the buying guide system is help to find out any customer exact
camera choice advice from a physical store. The focus of the business is digital
cameras and related products accessories, with the items rated including DSLRs, CSCs
and Compacts. The buying guide system will ask customers a series of questions
regarding their budget and priorities for the camera to select appropriate camera for
any buyer. I have made a user interface to make this application to choice camera
feature easily.

 Task: 1
Candidate Class List and Diagrams: The class diagram is a static diagram. It
represents the static view of an application. Class diagram is not only used for
visualizing, describing and documenting different aspects of a system but also for
constructing executable code of the software application. I have developed
candidate class list that are I have used in Camsort Application. The class list must
incorporate justifications with operation between class and operation. Now I have
given a candidate class list and class functionality into the table below:

Classes Functionality
Camsort, Camera, CSC, Compact, Manage camera Inventory, add camera,
DSLR, Camera Inventory, Camera remove camera, add camera details, remove
Inventory Application, MainUI, camera details, manipulate camera, search
CameraUI, CustomerUI. camera, sorting camera, view camera list,
rate camera, search camera result, search
camera by price, show camera ratings, view
camera rank list.
[ CITATION Cod14 \l 1033 ]

I have created in those of above listed classes to manipulate Camsort project well
planned; I have made Camsort class as a main class. I have created abstract camera
class and declare variable, getter and setter method, so, I have created this camera
class to make the subclass access and inherit common variable and method. In this
class also I have selected to get the ratings for some types of camera. In this camera
class CSC, DSLR, Compact classes are dependent of this class. CSC, DSLR, Compact
class inherit common value of camera. CSC camera contains two Boolean type
variables for extra feature of CSC camera and rating condition also. DSLR class
contains only ratings method that do rating calculation of the DSLR through this
class. Compact camera declare three Boolean type variable and make rating
operation that is implement for ratings of compact camera. I have create also a
CameraInventory class to make an array list to store in memory data, in this class
show the output of the camera dummy data into table. In this class display the

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
camera attribute in table. It also gets the user input from the UI.
CameraInventoryApplication have created for display the camera into inventory. I
have created UI form to get value form user and display and search form to query
data from array list. So, I have made three UI named Camera UI that manager can
add camera into inventory and it store on array list and CustomerUI that form used
to search camera data into some criteria by user. At last I have created MainUI form
that contains the form for user and manager operation.

 First Draft UML Class Diagram: For having compatibility OO modeling I have
generated first Draft class diagram for this project and identify and made the more
efficient class diagram for this Camsort application. Now I have given a first draft
class diagram below in figure 1.1. In this diagram I have only selected all of class that
is illustrated in my project. I have given these classes suitable name in class in my
project. Class diagram in this OO design that represent the relation to the between
class and object.

Figure: 1.1 First Draft UML Class Diagram

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
 Final Draft UML Class Diagram: I have made association of class, relationship
between classes, Generalization to classes to make the classes relation. In this UML
diagram I have illustrated variable, access modifier, attribute of classes and operation
between classes. The final draft class diagram of Camsort is given below in 1.2
figures.

Figure: 1.2 Final Draft UML Class Diagram


[ CITATION Pro14 \l 1033 ]

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
 Task: 2

Activity Diagram: Activity diagrams are graphical representations of workflows of


stepwise activities and actions with support for choice, iteration and concurrency. In
the Unified Modeling Language, activity diagrams are intended to model both
computational and organizational processes Activity diagrams show the overall flow
of control.

The basic purposes of activity diagrams are similar to other four diagrams. It captures
the dynamic behavior of the system. Other four diagrams are used to show the
message flow from one object to another but activity diagram is used to show
message flow from one activity to another.

Activity is a particular operation of the system. Activity diagrams are not only used
for visualizing dynamic nature of a system but they are also used to construct the
executable system by using forward and reverse engineering techniques. The only
missing thing in activity diagram is the message part.

[ CITATION Spa14 \l 1033 ]

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
 Task: 3

Use Case Diagram: A use case diagram at its simplest is a representation of a


user's interaction with the system and depicting the specifications of a use case. A
use case diagram can portray the different types of users of a system and the various
ways that they interact with the system. The use case diagram is an important tool to
managing abstraction. In this Camsort Application I have indented to make a use case
diagram to check my program. I have used it to represent the functionality for each
part. I have illustrated a use case diagram to make the application actions that are
performed by actors and that is given below in 3.1 Figure.

Figure: 3.1 Use Case Diagrams

In this assignment I have made a use case diagram to show the only functionality,
here, two actor are present that User and Manager. Manager can add Camera into
inventory and remove this entered item, on the other hand user can enter price
range minimum to maximum, enter value of Portability Importance, Ease of use,
Image Quality and also have to select any three type of photography to search
camera from inventory and get the ratings of camera in sorted list. This operation
can be made by two actors. These two actors only can be made operation by out of
system boundary via GUI Mode.

[ CITATION Wik14 \l 1033 ]

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
 Task: 4

Code Architecture: In this section I have going to focus on Camsort program code
architecture that is used for call method, operation, construction that I have made to
in whole program. In this step I have mapping code that I use for create main
method and that implement into classes.

In this program I have created some method of some classes, now I have going to
describe the methods that I have used for and importance of this method.

Methods:

 public abstract double getPortabilityRating( int importance);

I have made up this method in all type of camera class such as DSLR, CSC and
compact to make ratings by this condition. I have given the Code of this selected
method for DSLR class below:

In this DSLR class inherit the camera class and call the common variable and method
that is association into class. This method use condition to calculate ratings of the
portability of a DSLR camera.

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
 public abstract double getEaseOfUseRating ( int importance);

I have made up this method in all type of camera class such as DSLR, CSC and
compact to make ratings by this condition. I have given the Code of this selected
method for CSC class below:

In this CSC class inherit the camera class and call the common variable and method
that is association into class. This method use condition to calculate ease of use
ratings of a CSC type of camera.

[ CITATION DZo14 \l 1033 ]

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
 public abstract double getHolidaySnapsRating ( int importance);

I have made up this method in all type of camera class such as DSLR, CSC and
compact to make ratings by this condition. It get ratings by some of camera feature.
I have given the Code of this selected method for compact class below:

In this Compact class inherit the camera class and call the common variable and
method that is association into class. This method use condition to calculate Holiday
Snaps ratings of a compact type of camera. It is get the ratings by calculation of
zoomrange and image quality. It get the ratings by this condition of zoomrange value.

 public abstract double getLowLightShootingRating ( int importance);

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
I have made up this method in all type of camera class such as DSLR, CSC and
compact to make ratings by this condition. I have given the Code of this selected
method for compact class below:

In this Compact class inherit the camera class and call the common variable and
method that is association into class. This method use condition to calculate Low
Light Shooting ratings of a compact type of camera.

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
 public abstract double getLandscapesRating ( int importance);

I have made up this method in all type of camera class such as DSLR, CSC and
compact to make ratings by this condition. I have given the Code of this selected
method for compact class below:

In this Compact class inherit the camera class and call the common variable and
method that is association into class. This method use condition to calculate
Landscapes ratings of a compact type of camera. Landscapes ratings are available for
all type cameras, any user can select this type of photography by this condition value
and the method that is called for compact class.

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
 public abstract double getMacroRating ( int importance);

I have made up this method in all type of camera class such as DSLR, CSC and
compact to make ratings by this condition. It gets ratings by some of camera feature.
I have given the Code of this selected method for compact class below:

In this Compact class inherit the camera class and call the common variable and
method that is association into class. This method use condition to calculate macro
ratings of a compact type of camera. Macro ratings are also available only for
compact type camera. It has only get by manual control option on Compact class that
is used for.

 Task: 5

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
Command Implementation: In this step I have going to describe the command of this
camsort application is made and how to program run in graphical mode. At first I
have run the project to view the operation are correctly successful.

After the project run the program open a window and that contain menu bar that
have some menu.

When camsort application runs I have selected the Insert Camera Menu to add
camera into inventory. Then a new window will appear.

After entering the camera information the camera will show the message box and
the save data will be found on Result table in CustomerUI Form.

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
Then user selected their CustomerUI to query about the camera from the menu bar
by selecting Camera Inventory Menu.

After giving the price and select three type of Photography this application will be
show the camera result in the table.

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
By this search this table shows the camera rating and price by sorting. By click the
show all button it will display all of the camera type’s information into it and clicking
by remove button it will remove selected item from table row in this Inventory.

By click on exit button the window will close and if click on main window then all of
window is closed down automatically.

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
Conclusion: In this assignment I have create this program class diagram, Use case
diagram and activity diagram of this project and highlight the most important
method that is use forget ratings of any type of camera. I have also focus on code
architecture and design pattern of this software and make the program more
efficient by using OO Design and implementation. This project is successfully
completed though all of giving task.

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014
Bibliography and References

Apple Store, [Online], Available: http://store.apple.com/us/buy/home/shop_ipad/family/ipad2 [27 January


2013].

Code Project, [Online], Available: http://www.codeproject.com/Articles/9900/Identifying-Object-Oriented-


Classes [24 January 2014].

DZone JAVALOBBY, [Online], Available: http://java.dzone.com/articles/mapping-software-architecture [15


January 2014].

HP, [Online], Available: http://h10010.www1.hp.com/wwpc/us/en/sm/WF06a/321957-321957-64295-


3740644-3955548-5086719.html?dnr=1&jumpid=reg_R1002_USEN [23 Januray 2013].

Process Impact, [Online], Available: http://www.processimpact.com/articles/usecase.html [29 January


2014].

Sparx Systems, [Online], Available:


http://www.sparxsystems.com/resources/uml2_tutorial/uml2_activitydiagram.html [05 February 2014].

spiceworks.com, [Online], Available: http://community.spiceworks.com/topic/125610-portable-powerpoint-


and-video-presentation-solution [11 February 2013].

toptenreview.com, [Online], Available: http://mini-projector-review.toptenreviews.com/ [05 Fabruary 2013].

Wikipedia, [Online], Available: http://en.wikipedia.org/wiki/Use_Case_Diagram [04 February 2014].

www.dell.com, [Online], Available: http://www.dell.com/us/dfh/p/inspiron-15-intel-n5040/pd [24 January


2013].

yoursmallbusinessblog, [Online], Available: http://yoursmallbusinessblog.org/technology-grow-sales/ [07


February 2013].

19
Analysis, Design and Implementation March 2014 Final @NCC Education 2014

You might also like