Uploaded by Nelly Dibakwane

ICT2622 - 2023 Assignment 2 - Solutions

advertisement
ICT2622/203/0/2023
Tutorial Letter 203/0/2023
Object-Oriented Analysis
ICT2622
Year
School of Computing
IMPORTANT INFORMATION
Please register on myUnisa, activate your myLife e-mail address and
make sure that you have regular access to the myUnisa module
website, ICT2622-23-Y1, as well as your group website where
applicable.
Note: This is an online module and therefore it is available on myUnisa. However, in order to
support you in your learning process, you will also receive some study material in printed
format.
BARCODE
CONTENTS
Page
ASSIGNMENT 2 SOLUTIONS ................................................................................................................................3
2
ICT2622/203/0/2023
ASSIGNMENT 2 SOLUTIONS
Assignment Administration
Due Date
See the module site
Submission Procedure
Electronically via myUnisa
Number of Questions
06
Total Marks
100
Contribution to Year Mark
40%
Unique Assignment Number
741036
Assignment Solutions
Question 1
[12]
1.1 Give any five (5) core processes required in the development of any information system.
(10)
Answer:
a) Identify the problem or need and obtain approval to proceed with the project. ✓✓
b) Plan and monitor the project-what to do, how to do it, and who does it. ✓✓
c) Discover and understand the details of the problem or the need-what is required? ✓✓
d) Design the system components that solve the problem or satisfy the need-how will it actually
work? ✓✓
e) Build, test, and integrate system components-lots of programming and component integration.
✓✓
f) Complete system tests and then deploy the solution-the need now is satisfied. ✓✓
Note to markers: Please use your discretion. Give two marks for each correct answer. Markers can
give less than two marks where they see fit.
{Reference: Prescribed textbook, Chapter 1, Page 7}
1.2 Why do you think it may be a good idea to have several short interviews as opposed to having one
long interview during requirements gathering?
(2)
Answer:
Stakeholders have other responsibilities, and the analysts can absorb only so much information at one
time. It is better to have several shorter interviews than one long interview. ✓A series of interviews
provides an opportunity to absorb the material and then return for clarification later if needed. ✓
Note to markers: Please use your discretion.
{Reference: Prescribed textbook, Chapter 2, Pages 52}
Question 2
2.1 What are the five (5) steps to follow when using the brainstorming technique?
[10]
(10)
Answer:
a) Identify a user and set of use cases or user stories. ✓✓
b) Brainstorm with the user to identify things involved when carrying out the use case. ✓✓
c) Use the types of things (categories) to systematically ask questions about potential things. ✓✓
d) Continue to work with all types of users and stakeholders to expand the brainstorming list. ✓✓
3
e)
Merge the results, eliminate any duplicates, and compile an initial list. ✓✓
Note to markers: Give 2 marks for each correct step. Markers can give less than two marks where
they see fit.
{Reference: Prescribed textbook, Chapter 2, Page 96}
Question 3
3.1 Define the term schema.
[11]
(2)
Answer:
A schema is a database component that contains descriptive information about the data stored in the
physical data store. ✓✓
{Reference: Prescribed textbook, Chapter 9, Page
259}
3.2 What is an attribute or set of attributes that are unique identifiers and could serve as the primary
key?
(1)
Answer: candidate key✓
{Reference: Prescribed textbook, Chapter 9, Page 264}
3.3 State four (4) data access and management capabilities provided by databases and database
management systems.
(8)
Answer:
a) Simultaneous access by many users and application programs. ✓✓
b) Access to data without writing application programs. ✓✓
c) Application of uniform and consistent access and content controls. ✓✓
d) Integration of data stored on multiple servers distributed across multiple locations. ✓✓
Note to markers: Give 2 marks for each correct answer. Markers can give less than two marks
where they see fit.
{Reference: Prescribed textbook, Chapter 3, Page 76-77}
Question 4
[8]
4.1 What are the four (4) steps required to develop a system sequence diagram?
(8)
Answer:
a) Identify the input messages (from the activity diagram). ✓✓
b) Describe the message from the external actor to the system by using the message notation. ✓✓
c) Identify and add any special conditions on the input messages, including iteration and true/false
conditions. ✓✓
d) Identify and add the output return messages. ✓✓
Note to markers: Give 2 marks for each correct step. Markers can give less than two marks where
they see fit.
{Reference: Prescribed textbook, Chapter 5, Page 144}
Question 5
4
[45]
ICT2622/203/0/2023
Consider the case study that follows and answer subsequent questions.
A bank client wants to withdraw cash that was sent to them through the cash send service. To
withdraw cash from an automated teller machine (ATM), the client needs to do this by firstly selecting
the cardless services function from the ATM’s screen. The client will then select withdraw money. The
ATM will ask the client to enter the 4-digit PIN that was received via an SMS. If the PIN is not correct,
the client will be notified and as them to re-enter the correct PIN.
If the PIN is correct, the ATM will then ask the client to enter the amount they wish to withdraw. After
entering the amount, the system will check if the amount requested is more less or equal to the
balance. If the amount requested is greater than the balance, the ATM will inform the client and ask
them to re-enter the correct amount. If the amount entered is less than or equal to the balance, the
ATM will release the money and the system will update the balance. The client would be asked if they
want the slip to be displayed or printed. If the client chooses that the slip be displayed on the screen,
the system will display the slip, otherwise the ATM will print the slip. Then the client will select exit.
The ATM will then abort the transaction.
5.1 Use the scenario provided to draw a use case diagram.
Answer:
(20)
Note to markers: This is just a guide. Please use your discretion. Stop when you get to the 20th tick.
{Reference: Prescribed textbook, Chapter 3, Page 71-87}
Common mistakes:
▪ Students need to make sure that they have one diagram.
5
▪ For every diagram, the student needs to make sure that the diagram is clear enough. There were several cases
of diagrams that are just not readable.
▪ Students need to make sure that they follow guidelines for naming use cases (for instance a student would just
say ‘withdrawal’ instead of ‘make withdrawal’ or ‘select withdraw function’)
▪ Students need to follow standard guidelines for drawing actors.
▪ Students must name their actors. The marker must not assume which actor it is.
5.2 Draw an activity diagram using the provided scenario.
(25)
Answer:
Note to markers: This is just a guide. Please use your discretion. Stop when you get to the 25th tick.
{Reference: Prescribed textbook, Chapter 5, Page 137-139}
Common mistakes:
▪ Students need to follow standard guidelines for drawing components of the activity diagram. For instance, when
a decision is to be made, a diamond must be used. These components help with the interpretation of the
diagram.
6
ICT2622/203/0/2023
▪ Students must make sure that the diagram is not disjoined. If it is disjointed, then we cannot move from one part
of the diagram to the next.
▪ When drawing an activity diagram, we use arrows and not lines. The direction of these arrows is very important
as it shows the direction of the sequence of events.
Question 6
[14]
Study the scenario that follows.
A customer can place one or more orders, but an order belongs to only one customer. A customer is
described by its name, delivery address, and contact number. While an order is described by order
number, order status, and order date. Only one payment is made for an order. An order can be paid
for through one of two options. A payment is either cash or debit. A payment has an amount attribute.
Cash payment is described by cash tendered, while debit payment is described by number, type, and
expiry date.
6.1 Use the scenario to draw a UML class diagram.
Order
Customer
-name
-contactNumber
-deliveryAddress
(14)
1
-orderNumber
-orderStatus
-orderDate
2
Payment
-amount
Debit
Cash
-number
-type
-expDate
-cashTendered
Note to markers: This is just a guide. Please use your discretion. Stop when you get to the 14th tick.
{Reference: Prescribed textbook, Chapter 5, Page 103-115}
▪ Students need to follow standard guidelines for drawing components of the UML class diagram. For instance,
attributes should not be written in a point form These components help with the interpretation of the diagram.
▪ Students must know when to use lines or arrows to link classes.
©
UNISA 2023
7
Download