HomeWork 1 Software Engineering CU
HomeWork 1 Software Engineering CU
Chapter 1 (Sommerville)
Question 1.1:
for the of professional software development, we aren’t
look for the final state only , as we need to create a
software that meets customer need and can adapt ‘th
future challenges, We need (Acceptable, Dependable and
Securable, efficient, Maintainable) Software , It also must
avoid software issues (Heterogeneity, Security and trust)
Question 1.3:
Software Engineering reduce the cost of the testing and
fixing bugs as The product is Maintainable easy to
maintain and update, reducing the long-term costs
associated with patches, reducing the risk as we make
reliable product.
Question 1.5:
Different application types use of different development
techniques for many reasons:
1) Costs and frequency of change. Some systems (such
as embedded systems in consumer devices) are
extremely expensive to change; others, must change
frequently in response to changing requirements (e.g.
business systems). Systems which are very expensive to
change need extensive up
analysis to ensure that the requirements are consistent
and extensive test to ensure that the system meets its
specification.
Question 1.6:
1) process: sequence of activities that lead to the
production of software product include (Specification,
development, validation and evolution ) aim to have a
clear goal for team to manage tasks
2)Dependability: Reliability of the software system
3)Requirements management : to Prioritise
tasks ,documenting requirements and make specific
goals this step at system specification
4) Reuse : making new software from the old one instead
of starting from scratch
And this save time , effort and money
Chapter 2 (Object-Oriented)
Question 2.1:
Actors here are external entities that interacts ’th the
Atm system
Three actors are :
1)Customer : the person who withdraw and deposit and
Transfer money from the ATM
2)Developers : who develop the system software
Tickets
Question 2.5:
---------------------------------------------------------------------------------
----
---------------------------------------------------------------------------------
----
Use case name : UpdateTariff
---------------------------------------------------------------------------------
----
---------------------------------------------------------------------------------
----Participating actor Initiated by
CentralComputerSystem
---------------------------------------------------------------------------------
----
---------------------------------------------------------------------------------
----
Flow of events
---------------------------------------------------------------------------------
----
---------------------------------------------------------------------------------
----
1. The CentralComputerSystem activates the
“UpdateTariff” function of the ticket distributors available
on the network.
2. The ticket distributor disables the traveler interface
and posts a sign indicating
that the ticket distributor is under maintenance.
3. The ticket distributor waits for the new database from
the
CentralComputerSystem.
4. After waiting a minute for the ticket distributors to
reach a waiting state, the CentralComputerSystem
broadcasts the new database.
5. The ticket distributor system receives the new
database of tariff. Upon complete,
the ticket distributor sends an acknowledgement to the
CentralComputerSystem.
6. After acknowledgment, the ticket distributor enables
the traveler interface and
can issue tickets at the new tariff.
7. The CentralComputerSystem checks if all ticket
distributors have acknowledged the new database. If not,
the CentralComputerSystem invokes the
CheckNonRespondingDistributors use case.
Entry condition
i)The ticket distributor is connected to a network
reachable by the CentralComputerSystem.
---------------------------------------------------------------------------------
----
---------------------------------------------------------------------------------
----
Exit condition
---------------------------------------------------------------------------------
----
---------------------------------------------------------------------------------
----
i)The ticket distributor can issue tickets under the new
tariff, OR
ii) The ticket distributor is disabled and displays a sign
denoting that it is under maintenance.
---------------------------------------------------------------------------------
----
---------------------------------------------------------------------------------
----
Quality requirements
---------------------------------------------------------------------------------
----
---------------------------------------------------------------------------------
----
The ticket distributor stays offline at most 2 minutes and
is considered out-of-order otherwise.
---------------------------------------------------------------------------------
----
Question 2.6:
We Know that without parts the book can’t exists but we
can make parts without book so 1 book contain many
parts
Same in part and chapters same in chapter and Sections
So, we have 4 classes ‘th Aggregation relation ship
between each
Book
1
M
Part
1
M
Chapter
1
M
Section
Question 2.9:
2–9 Extend the class diagram of Exercise 2–6 to include
the following attributes:
book includes a publisher, publication date, and an ISBN
part includes a title and a number
chapter includes a title, a number, and an abstract
section includes a title and a number
Question 2.10:
Components
title:String
dvczv
number:Integer
Question 2.13:
Question 2.15:
Start
Pick the
phone
Question 2.16:
We have 3 exceptions ‘ch are (delivery person wrote
down wrong address, delivery person brings wrong pizza,
store out of anchovies)
In case delievery wrote wrong address : He will call
customer again
In case delivery person brings wrong pizza or store out of
anchovies the order ‘ll be cancelled
store out of
anchovies