We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Total Marks: 20
Due Date: 21/01/2017
Objective:
To learn and understand the basic concepts of Design Patterns.
Instructions:
Please read the following instructions carefully before solving & submitting assignment:
Assignment should be in your own wordings not copied from net, handouts or books.
It should be clear that your assignment will not get any credit (zero marks) if:
o The assignment is submitted after due date.
o The submitted assignment does not open or file corrupt.
o The assignment is copied (from other student or copy from handouts or internet).
For any query about the assignment, please communicate at
CS504@vu.edu.pk
You are advised to please upload the assignment in MS Word format only (other formats i.e.
.pdf, images etc. will not be accepted.)

Question No 1: 10 Marks
According to Roger S Pressman Software architecture alludes to “the overall structure of the software
and the ways in which that structure provides conceptual integrity for a system” .In its simplest form,
architecture is the structure or organization of program components (modules), the manner in which
these components interact, and the structure of data that are used by the components. In a broader
sense, however, components can be generalized to represent major system elements and their
interactions. One goal of software design is to derive an architectural rendering of a system. This
rendering serves as a framework from which more detailed design activities are conducted. A set of
architectural patterns enables a software engineer to solve common design problems.
What makes software architecture “BAD” Are architectures influenced by background and
experience of software architects? Explain. ?
(Answer should be brief i.e, 2-3 paragraphs)

Question No 2 :
Introduction:
In software engineering, the singleton pattern is a software design pattern that restricts
the instantiation of a class to one object. The Singleton pattern ensures that a class has only one
instance and provides a global point of access to that instance. The concept is sometimes generalized
to systems that operate more efficiently when only one object exists. Keep in mind the details and
working of singleton patterns solves the question no 2.
10 Marks


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 4779

Attachments:

Replies to This Discussion

Thanks guys for the inputs. Bit confused now.Can we know the source of answers provided especially in Q2 ?

Confusion

CS411 Assignment 2 Complete Solution 2017

Sir! It seems you have posted in wrong thread.

Any bbody share new idea please kindly yeh bi bata dy is ki last date kb ha

4. Which types of attribute define as single instance in class?

Can anyone the answer to this question ??????

is ki last date aj ah?

Due date aj hay. Is liay to puch rahi hun.

CS504_ 3rd Assignment Solution
Imdad Hussain MC150402556

Q No: 1
Ans.
Every time you fix a defect, something else — seemingly unrelated — breaks. This requires exhaustive testing of the entire system for every change. If developers implement code modules any way they like without considering how existing modules operate, the code will become inconsistent, confusing and error prone. With the exception of some types of embedded systems, software should exhibit distributed control. Having too much intelligence in a single module causes bottlenecks and contention issues. This is a classic sign of poor architecture. It’s often faster to simply write one giant module than several smaller ones. Unfortunately, the giant module is harder to test and maintain.
Yes, the architectures are influenced by background and experience of software architects. Because developing the architecture is a creative and iterative process. Develop the architecture design is not a well-defined sequence steps that you performed rather than performing the number of activities. This includes system structuring, control modeling and modular decomposition.
Q No: 2
Ans.


S No. Statement Answer
1 How to define constructor in Singleton patterns? Protected Singleton ()
{
}
2 What to do in accessor function? Accessor function is only use to manipulate the Singleton pattern. Accessor is to get the value of private data member
3 Which type of function is defined in class? Public, Protected, Private
4 Which types of attribute define as single instance in class? Ensure a class has only one instance and provide a global point.
5 Which type of function use by clients in singleton patterns? Singleton exclusively through the instance member function

Cs 504 assignment solution no 3 2017

Attachments:

CS504 Assignment Solution
Question no. 1 
According to Roger S Pressman Software architecture alludes to “the overall structure of the software
and the ways in which that structure provides conceptual integrity for a system” .In its simplest form,
architecture is the structure or organization of program components (modules), the manner in which
these components interact, and the structure of data that are used by the components. In a broader
sense, however, components can be generalized to represent major system elements and their
interactions. One goal of software design is to derive an architectural rendering of a system. This
rendering serves as a framework from which more detailed design activities are conducted. A set of
architectural patterns enables a software engineer to solve common design problems.
What makes software architecture “BAD” Are architectures influenced by background and
experience of software architects? Explain. ?
(Answer should be brief i.e, 2-3 paragraphs)
Answer.
Every time you fix a defect, something else — seemingly unrelated — breaks. This requires exhaustive testing of the entire system for every change. If developers implement code modules any way they like without considering how existing modules operate, the code will become inconsistent, confusing and error prone. With the exception of some types of embedded systems, software should exhibit distributed control. Having too much intelligence in a single module causes bottlenecks and contention issues. This is a classic sign of poor architecture. It’s often faster to simply write one giant module than several smaller ones. Unfortunately, the giant module is harder to test and maintain.
Yes, the architectures are influenced by background and experience of software architects. Because developing the architecture is a creative and iterative process. Develop the architecture design is not a well defined sequence steps that you performed rather than performing the number of activities. This includes system structuring, control modeling and modular decomposition.


1 How to define constructor in Singleton patterns?
Protected Singleton ()
{
}
2 What to do in accessor function? 
ANS. Accessor function is only use to manipulate the Singleton pattern.
Accessor is to get the value of private data member

3 Which type of function is defined in class? 

Public, Protected, Private

4 Which types of attribute define as single instance in class
Ensure a class has only one instance, and provide a global point

5) Which type of function use by clients in singleton patterns?
singleton exclusively through the Instance member function.

CS504 assignment 3 fall 2017 solution

Attachments:

RSS

Latest Activity

Kamboh(zaheen o haseen) updated their profile
31 minutes ago
Profile IconGOHAR-MEHMOOD, Tehreem fatima, Iqra and 11 more joined Virtual University of Pakistan
49 minutes ago
Nabila joined +M.Tariq Malik's group
59 minutes ago
Mifa Fadel liked +M.Tariq Malik's group SOC101 Introduction to Sociology
1 hour ago
ᴍᴜʙᴀꜱʜɪʀ ♥ updated their profile
1 hour ago
+++!!zυηι кнαη(αм ¢у¢σ) updated their profile
3 hours ago
Mifa Fadel liked +M.Tariq Malik's discussion SOC101 Introduction to Sociology Assignment 01 Fall 2020 Solution / Discussion
7 hours ago
shifa arshad added a discussion to the group CS605 Software Engineering-II
10 hours ago
shifa arshad joined +M.Tariq Malik's group
10 hours ago
Profile Iconиαвєєℓ αнмє∂ and Ali Fahad joined +M.Tariq Malik's group
11 hours ago
shifa arshad replied to +M.Tariq Malik's discussion MGT502 Organizational Behavior GDB No 01 Fall 2020 Solution / Discussion in the group MGT502 Organizational Behavior
12 hours ago
shifa arshad joined +M.Tariq Malik's group
12 hours ago
+ !! SARAH replied to Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
13 hours ago
+ ᴄᴏғғᴇᴇ updated their profile
13 hours ago
Rizwan Mushtaq joined +M.Tariq Malik's group
13 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** My Drawing ***
14 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
14 hours ago
Arooj Shahid liked Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
14 hours ago
Arooj Shahid liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
14 hours ago
Arooj Shahid liked Omar's discussion Dua
14 hours ago

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.