Sei sulla pagina 1di 7

1

Software Metrics example




This assignment is a group assignment.
Each is composed of not more than 5 members.

Suppose that you are going to recommend buying a copy machine to your company for system
wide use. You have devised two copy machines with the specifications given below.
Your task is to advise the decision making committee which one is better. Write about 2 pages of
report using the measurement concepts and metrics terminology to compare and recommend/not
recommend one and explain why.

Machine 1:
A high-speed black and white laser printer with 640MHz processor, 128Mbyte memory,
100Mbyte hard disk, 20ppm printing speed, 100 base-T network adapter Card. The toner
costs about $200 for 4,000 pages output. 200 pages optional paper tray. Makers data says
that the system should run without failure for 4,000 pages. Price $900.

Machine 2:
A low-speed color laser printer with 128MHz processor, 32Mbyte memory, 100Mbyte
hard disk, 8ppm printing speed, network adapter Card is optional $300. The toner costs
about $500 for 4,000 pages output. 100 pages optional paper tray. Makers data says that
the system should run without failure for 4,000 jobs. Price $1,200.


You must come up with a crisp suggestion that the manager will base her/his decision on it. Using
models, graphs and/or tables to back up the argument are considered better than reporting in
narrative style. Some useful hints are:
Defining the scales for the attributes that are going to be compared, mapping the measured
(given) values to the scales and discuss the properties of the scales.
Defining a model for the requirement assessment from both the manager and user
viewpoints.
Issues with goal, quality and compatibility of the parameters, such as developing a GQM
model.
Defining a quality model based on the attributes and trying to map the measured (given)
values to the model.









2
RECOMMENDATION OF A MACHINE TO THE MANAGER
USING AN ORDINAL SCALE WITH 1 AND 2
Rating(printer)=1, if printer is good.
Rating(printer)=2, if printer is better.

ATTRIBUTE ENTITY VALUE
processor high-speed black and white laser
printer
640MHz
Rate=2
low-speed color laser printer 128MHz
Rate=1
Memory high-speed black and white laser
printer
128Mbyte
Rate=2
low-speed color laser printer 32Mbyte
Rate=1
Printing speed high-speed black and white laser
printer
20 ppm
Rate=2
low-speed color laser printer 8 ppm
Rate=1
Network Adapter Card high-speed black and white laser
printer
100 base-T
low-speed color laser printer optional
TonerCost high-speed black and white laser
printer
$200 for 4,000 pages output
Rate=2
low-speed color laser printer $500 for 4,000 pages output
Rate=1
PaperTrayCapacty high-speed black and white laser
printer
200 pages
Rate=2
low-speed color laser printer 100 pages
Rate=1
HardDiskSpace high-speed black and white laser
printer
100Mbyte
Rate=2
low-speed color laser printer 32Mbyte
Rate=1


Reasons for choosing this scale

Numbers represent ranking only showing order of preference
Asymmetric in the sense that if high-speed black and white laser printer has better rating,
then its better than low-speed color laser printer
Has the transitivity property
There is a clear notion of order of preference basing on the values

Recommend Printer
high-speed black and white laser printer is preferred because it has generally better values
compared to low-speed color laser printer


3
GQM MODEL
Goal: Choosing the best machine for system wide use

Question: How quickly is the printing done?
Metric: Measure the printing speed. The higher, the better the printer is

Question: How many tasks can be stored by the printer for processing?
Metric: Measure the memory .The higher, the better the printer is.

Question: How many ways can documents be sent to the printer for printing?
Metric: Measure the printing speed. The higher, the better the printer is

Question: How many papers can be handled by the printer a given time?
Metric: Measure the tray capacity. The higher, the better the printer is

Question: How efficient and cost effective is the printer?
Metric: Measure the cost per a given output. The higher, the better the printer is

Machine 1 has the better values FOR all the attributes therefore it is recommended.

QUALITY MODEL:
USE FACTOR CRITERIA METRIC















Memory size enables more tasks to be loaded for processing a given time .
Processor and printing speed determines how quickly the printing is done
Network adapter provides a vital way for the machine to receive files for printing

ADVISE TO DECISION MAKING BODY.
Machine 1 generally has the better specifications that can enable it to print 4000 pages .
Machine 2 is not recommended because its specifications are not as good as machine 1 for the
same task of 4000 pages


Printing
4000 pages
Reliability
Performance
Data input
capabilities
processor
memory
Printing speed
Network adapter
Processor speed
Memory size

4
Function Points for a VirtualArtViewer

Executive summary
VirtualArtViewer is a STAND-ALONE web tool used to have access to every bit of information
available about every piece of art.

The VirtualArtViewer will allow the administrators to create, edit and store paintings and
information about the paintings, but will also allow general users to retrieve their favorite
paintings and all related relevant information.
About VirtualArtViewer.
7 System inputs which are : login , password, theme, painting, artists, galleries and
location
3 System outputs which are: Error/success messages, 50 most popular paintings, printing
3 System inquires which are: search for a painting, view information for painting, Help.
1 System data file : Internal Logical File to store paintings and related information
No External interfaces.

Possible sources of Risk by the development of the VirtualArtViewer:
Limited schedule due to Rapid development
Maintaining Link Consistency
Complex Search Algorithms to facilitate the different types of search

Proposed system design
Administraters can use : inputs, outputs, inquires.
General users can: use system outputs and inquires








VirtualArtViewer
Adminstraters
General_users
Search,view,h
elp,login,pass
word
A_role
Storage database
5




FP measurement results

Complexity Assessment for the different functions USING:
Record Types (RET)

Data Element Types (DET)

File Types Referenced (FTR)

Element FTR DET Complexity
Assessment
inputs 1 7 Low(3)
Outputs 1 3 Low(4)
inquiries 1 3 Low(3)

Internal logical file
RET=3 DET=13 Complexity
Assessment=low(7)

Weighting of Technical Complexity to calculate Unadjusted function points.
Elements Complexity weighting factor
Low Average high Sum
External inputs 7*3 21
External outpus 3*4 12
External inquirees 3*3 9
External interface files 1*7 7
Internal logical files 0 0
Unadjusted function points 49





6



Application of the adjustment factor on the system

No. Question Complexity adjustment
value (F
i
)
1 Does the system require reliable backup and recovery?

5
2 Are data communications required?

1
3 Are there distributed processing functions?

0
4 Is performance critical?

5
5 Will the system run in an existing, heavily utilized
operational
Environment?

0
6
5
6 Does the system require on-line data entry?

5
7
4
Does the on-line data entry require the input transaction to be
built over multiple screens or operations?

1
8 Are the master files updated on-line?

5
9 Are the inputs, outputs, files, or inquiries complex?

3
10 Is the internal processing complex?

4
11 Is the code designed to be reusable?

0
12 Are conversion and installation included in the design?

0
13 Is the system designed for multiple installations in different
organizations?
0
14 Is the application designed to facilitate change and ease of use
by the user?
5
Total complexity adjustment value

F
i
= 35


Calculation of function points for the system.
7
Function points (FP)= (Unadjusted function points)*[0.65+(0.01*N)]
Where N=Total complexity adjustment value

FP = (49)*[0.65 + (0.01*35)] = 49

Estimated Function-Oriented Metrics.
>10000 LOC are estimated basing on these standards
Using java as the programming language
Logical Line of Code
comment lines and blank lines not considered

> Errors per FP : 50 errors

> Defects per FP : 5 defects

> $ per FP : $100

> FP per person-month :5 FP



Summary of the results

Low complexity assessment values means the system can undergo Rapid Application
Development compared to very complex systems.
Function points of 49 means the system has many functionalities that need to be given
attention
Being a stand-alone web system, Rapid Application Development is possible

Likely defects for all the function points is 245 defects which may increase cost to correct
them
The bigger the FP per person-month, the earlier the project will be completed










REFERENCES:

[1] Requirements Document for the VirtualArtViewer

Potrebbero piacerti anche