0% found this document useful (0 votes)
72 views4 pages

AP Assignment After IV - Scenario Form

The document provides an assignment brief for a Higher National Diploma in computing unit on advanced programming. The tasks involve: [1] Describing object-oriented concepts like static variables and constructors with code examples; [2] Creating a UML class diagram for a factory system and explaining relationships; [3] Implementing the system with code and screenshots; [4] Investigating how to automatically extract UML diagrams from code; and [5] Categorizing design pattern examples as creational, structural, or behavioral and explaining the choices.

Uploaded by

Asmaa
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)
72 views4 pages

AP Assignment After IV - Scenario Form

The document provides an assignment brief for a Higher National Diploma in computing unit on advanced programming. The tasks involve: [1] Describing object-oriented concepts like static variables and constructors with code examples; [2] Creating a UML class diagram for a factory system and explaining relationships; [3] Implementing the system with code and screenshots; [4] Investigating how to automatically extract UML diagrams from code; and [5] Categorizing design pattern examples as creational, structural, or behavioral and explaining the choices.

Uploaded by

Asmaa
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/ 4

Luminus Technical University College -

Assignment Brief (RQF)


Higher National Diploma in computing
Language of
AR EN
assessment
Student Name
College ID:
Pearson ID:
Unit Number and Title 20 Advanced Programming
Academic Year 2022/2023
Unit Tutor Abdelbaset Assaf, Hala Majdalawi
Internal Verifier Name Safa Bani Essa Approval Date:
and Approval
(Signature)
Assignment number and 1 OOP Development
Title
Issue Date (1St 20/11/2022 Submission Date 10/12/2022
Submission) (1st Submission)
Issue Date (2nd 20/12/2022 Completion Date 23/12/2022
Submission) (2nd Submission)
Submission Format
The submission form is an individual written report, should be written in a concise formal business
style using single spacing and font size 12. You are required to make use of headings paragraphs, and
subsections as appropriate, your work must be referenced using Harvard or APA reference style.
Unit Learning Outcomes
Examine the key components related to the object-orientated programming paradigm,
LO1
analysing design pattern types
LO2 Design a series of UML class diagrams
LO3 Implement code applying design patterns
LO4 Investigate scenarios with respect to design patterns

Transferable skills and competencies developed

Understanding how to translate a scenario into UML class diagrams and


implementing it using OOP concepts
Vocational scenario:
You are a software developer at Space Dimensions Company. You have been
assigned to work on a project to handle a factory system.

The factory has a name, address, invoice value and products. Each product
consists of id, name and price.

The factory has several types of employees in the factory in which they all
share a name, id, email, salary and phone. The manager has department in
which he/she works in, office number and project name in which he/she is
responsible for. The workers have a position, shift and a flag that defines if the
worker is a team leader or not. The accountant has a level and a list of
responsibilities.

A client has id, name, address and purchase order. The purchase order has
client linked to it, id, invoice value and products. The purchase order must
have an option to add products to the purchase which will increase the invoice
value based on the products’ price.

Both the factory and client should have a pay option that will pay the invoice
value. All the employees should have an option to get their salaries based on
their profession as follow:
 Manager salary = base salary + 25% of the base salary
 Worker salary = base salary + 5% of the base salary
 Accountant salary = base salary + 10% of the base salary

Note: Employee is too general.


It has been decided to use an object oriented approach to design and implement the system.

Assignment activity and guidance


Task 1
Briefly describe the following Object oriented concepts. Provide diagrams and code
snippets (you must write code) to supplement your explanations.
i) Static variables and methods
ii) Default constructor and parametrise constructors
iii) Access modifiers and encapsulation
iv) Abstraction

Task 2
i) Create a detailed UML class diagram for the factory system using a suitable
UML tool. The classes should include attributes and methods.
ii) Explain one inheritance and one composition relationships existed in your
UML.

Task 3
i) Implement the system using a suitable object oriented language. Provide
screen shots (in addition to source code) as evidence of program execution.
Task 4

i) LLH has a HR system and they want to integrate it with your new developed
system. The main problem is that they do not have any documentation. You
need to extract the UML class diagram from the already existed code to able to
do the task. Investigate how we can create a tool to extract the UML
automatically from the given code in details.

Task 5

i) There are three categories of design patterns which are creational, behavioural and
structural. Given the list below that has design patterns examples. Sort them into
the three categories and explain your choices.
a. Singleton Pattern
b. Facade Pattern
c. Observer Pattern
d. Decorator Pattern
e. Factory Pattern
f. Strategy Pattern

Recommended Resources
Please note that the resources listed are examples for you to use as a starting
point in your research – the list is not definitive.
Textbooks
Learning Outcomes and Assessment Criteria

Pass Merit Distinction

LO1 Examine the key components related to the object


orientated programming paradigm, analysing design
pattern types

P1 Examine the M1 Determine a design D1 Analyse the relationship between


characteristics of the pattern from each of the the object-orientated paradigm and
object-orientated creational, structural and design patterns.
paradigm as well as the behavioural pattern types.
various class
relationships.

LO2 Design a series of UML class diagrams


D2 Analyse how class
P2 Design and build class M2 Define class diagrams for diagrams can be derived from a given
diagrams using a UML tool. specific design patterns using a code scenario using a
UML tool. UML tool.

LO3 Implement code applying design patterns

P3 Build an application M3 Develop code that D3 Evaluate the use of design patterns
derived from UML class implements a design for the given purpose specified in M3.
diagrams. pattern for a given purpose.

You might also like