Pages

Monday 31 October 2011

cs602 Assignmrnt no 1 fall 2011 idea solution

Question 1 10 marks
What are the problems lying in odd parity method and how even parity can be used in advantage for filling polygon?

Question 2 10 marks
Using the scan line polygon filling algorithm, find "All edge table" and "Global edge table" for following figure.

Friday 28 October 2011

MGT401 Financial Accounting II Assignment no 1 Fall 2011 Idea Solution

Semester “Fall 2011”
“Financial Accounting II (MGT401)”
Assignment No. 01 Total Marks: 15

Question No. 1 (5 Marks)
On October 01, 2010 Model Company Limited, in the course of improvement and enhancement of its production facility, imported a plant from abroad having invoice value of Rs. 30 million for the production of its popular brand of electrical goods. A special trade discount of 25% was allowed by the vendor. Mr. Goodman, one of the directors, was assigned the duty of supervising the installation of the plant. 

Other information is given below:

Rs.
Expenses related to the import of the plant 1,620,000
Site preparation vusolutions 4,900,000
Operating losses before commercial production 400,000
Cost of test run & special staff training 730,000
Misc. Administrative Expenses 75,000
Interest paid to the vendor for deferred credit 200,000 
Compensation by the vendor for capacity default 900,000
Estimated dismantling and other costs 1,150,000
Cost of damaged instruments 150,000

Required: Determine the cost of the plant to be recognized initially in the books of account.

Question No. 2
Furniture Point is the renowned name in the furniture market. They are dealing in five major wooden components of vusolutions furniture i.e. sofas, bed sets, dressing tables, dining tables and wardrobes. At 31st December, 2010 the inventory in hand was as follows:

Required: Calculate the value of inventory as on December 31, 2010 under IAS 2 – Inventory. Also pass necessary adjusting entries in this regard, if required.
Idea Solution will be soon

Thursday 27 October 2011

PHY101Assignment 1 Fall 2011 Idea Solution



Assignment 1: (Fall 2011) Physics
PHYSICS (PHY101)
TOTAL MARKS: 20
Due Date: 31/10/2011

DON'T MISS THESE Important instructions:
• To solve this assignment, you should have good command over first 8 lectures.
• Upload assignments (Microsoft word) properly through LMS, (No Assignment will be accepted through email).
• Write your ID and name on the top of your solution file.
• All students are directed to use the font and style of text as is used in this document.
• Don't use colorful back grounds in your solution files.
• Use Math Type or Equation Editor etc for mathematical symbols.
• Write to the point avoid from unnecessary explanation, such superfluous explanation will reduce your number.
• Avoid copy/paste from internet etc, if found you will be graded as zero marks.
• This is not a group assignment, it is an individual assignment so be careful and avoid copying others' work. If some assignment is found to be copy of some other, both will be awarded zero marks. It also suggests you to keep your assignment safe from others. No excuse will be accepted by anyone if found to be copying or letting others copy.

Don't wait for the last date to submit your assignment.

Question # 1
A hand holding the apple lifts it upwards, applying a force of 10N. If the mass of the apple is 250g has a weight of 2.5N. Find the acceleration of the apple. Marks = 5

Q: 2:
A frog applies a constant force of 80N while pushing him up a hill, while gravity and legs friction cause a constant 80N force in the opposite direction. In this situation 
a. the frog applied force of 80N means the frog must be accelerating
b. the net force on the frog is 0N, which means the frog is not accelerating
c. the combined force of gravity and legs friction means the frog must be decelerating
d. the frog can't be moving up the hill, because the forces on it are balanced.

Write the detail of your above choice as well. vusolutions Marks = 5

Q. 3:
If a motorcyclist is moving at 70 km/h and it rounds a corner, also at 70 km/h, does it maintain a constant speed, or a constant velocity? Explain your answer. Marks = 5

Question # 4
A Pakistani satellite moves in a straight line towards the north with a speed of 3 × 104m/s.It has subjected to different frictional forces (like air frication, gravity etc) acting on it. During a 5m displacement, vusolutions the total work done on the satellite is 
(I) zero
(II) positive
(III) negative
(IV) insufficient information provided in question.

Justify your above selected choice as well. Marks = 5

MCM 511 Assignment No. 01 FALL 2011

Semester "FALL 2011"
"Theories of Communication (MCM 511)"
Assignment No. 01 Marks: 15

Understanding The Types Of Theories In Field Of Communication:

TASK 1:
Based upon your observation or experience of the main stream media, develop your own common sense theories (at least two). (2.5+2.5)
Note: Though it depends on your observation or experience of the media but your developed theory must exhibit the influence of the media on the social world.

TASK 2:
A. Your first task is to look for at least two examples of social scientific theories in field of mass communication. For this purpose you can browse internet, look for online research journals, e-books or Google scholar as per your ease. (3)

B. Your second task is to justify that why and how your selected examples are social scientific theories? (2)

TASK 3:
A. Your first task is to look for at least two examples of operational media theories. For this purpose you can browse internet, look for online research journals, ebooks or Google scholar as per your ease. (3)

B. Your second task is to justify that why and how your selected examples are operational media theories? (2)

Special instructions:
�� Given tasks are an application based knowledge testing. So, be open to apply the concepts that you comprehend during the course of your study up till now.
�� Before you move on to solve your assignment, make sure that you have a good knowledge and grip of the concepts learned in the lecture 09.
�� You are supposed to browse web to give examples of social scientific theories and practical media theories but make sure that you give proper references according to APA style guide.

Important Tips
1. This Assignment can be best attempted from the knowledge acquired after watching audio lecture no. 1 to lecture no 9 and reading handouts as well as
recommended text book).

MCM 301 Assignment no 1 Fall 2011 Idea Solution

emester "Fall 2011"
Communication Skills
MCM301
Assignment No. 01 Marks:15

"Communication in On-line Learning System"

Conventional education system provides classroom environment to students where teacher and students have face-to-face interaction. Due to the limited seats in universities, many students fail to take admission in their respective disciplines. Today, student wishes to acquire a recognized university degree without quitting his current job. In this scenario, on-line learning promises to meet the student's education needs with ease and flexibility.
1. How is the experience of asking queries in writing through MDBs and Emails instead of asking them verbally as practiced in conventional system? (03)
2. What types of academic issues do you generally discuss with your teacher? (02)
3. Would you like to seek assistance on your personal matters with your on-line teacher? (02)
4. How do you define your relationship with your teacher? (02)

Communication on Teacher's Part:

5. Do teacher's responses in form of MDB and Email replies help you develop better understanding about topic? (02)
6. Favoritism is a common practice at conventional university. Did you notice any kind of favoritism from teacher in on-line learning environment? (02)
7. Do you incorporate your teacher's suggestions/comments in study/work? (02)

Solution:





Communication in On-line Learning System


Communication on your part:


1. Its better and easy way to ask for the queries through MDBS and emails, firstly because in conventional class sometimes student get embarrassed to ask anything second time, the reason could be his/her follow students and teacher as well they might think that what a dull person he/she is asking the same question again and again, secondly sometimes its difficult to understand through verbal communication whereas in writing we get the response of our query with an example.


2. Usually students discuss the topics related to their course, if they don’t get accurately or don’t comprehend the situation from video lectures and handouts then they post their queries related to their particular topic.


3. No! As far as concerned about assistance related to personal matters being a student i would like to say it’s not suitable because online teachers are for the assistance of our study not for our personal matters and if anyhow we ask from our teachers about our personal matters they must refuse to talk about issues of this kind.


4. Although the relationship of a student with his/her teacher is very respectable and being a student its our duty to respect our teachers but here the scenario is differ because interacting face to face is something else other person understands what he/she trying to say in which manner from body language, expressions etc but in online studies case we ain’t negotiate or interact like face to face communication so we should treat our teacher as our instructor and ask him/her questions to the point which don’t bother them.

Communication on Teacher’s Part:


5. The teacher’s responses in form of MDBs and Emails played a vital role in our grades and in CGPA as well because if they don’t assist us and don’t response our queries answers then it will be very difficult to understand which we try to comprehend our own. The responses clear our concepts and cut out hazards related to any topic and develop the understanding better.


6. No doubt favoritism always takes place in any conventional university but in online learning system there is nothing like favoritism teachers treats all students equally whether he/she gets good grades or bad.


7. Yes! Obviously students should incorporates teacher’s suggestions and comments in study or work because they are teachers, got loads of knowledge if students don’t take their suggestion and comments seriously then they won’t be a successful person in their lives, teachers comments/suggestion could be for appraisal or could be for improvements it depends on us how and in which sense we take them, if they comment for improvements that’s for our own good then we should understand that next time we struggle hard and don’t do that mistake again and if they give us some good and appraisal comments then we have to keep our image always like that.

MGMT627 Assignment no 1 Fall 2011 Idea Solution

The board of directors of a local not-for-profit organization that collects and buys food and distributes it to people in need is having its September board meeting. Sitting in the conference room are Mr. Basit, the board chairperson, and two board members, Ms. Robina and Mr. Salman. Mr. Basit announces, "Our funds are almost exhausted. The demands on the food bank and kitchen have been increasing. We need to figure out how to get more funds."

"We have to have a fund-raising project," responds Ms. Robina.

Mr. Salman suggests, "Can't we ask the local government if they can increase their allocation to us?"

"They're strained. They may even cut our allocation next year," replies Mr. Basit.

"How much do we need to get us through this year?" asks Ms. Robina.

"About 1 million Rupees," answers Mr. Basit, "and we are going to start needing that money in about two months."

"We need a lot of things besides money. We need more volunteers, more space for storage, and another refrigerator for the kitchen," says Mr. Salman.

"Well, I guess we can make that all part of the fund-raising project. This is going to be fun!" says Ms. Robina excitedly.

This project is growing. We'll never get it done in time," Mr. Basit says.

Ms. Robina says, "We'll figure it out and get it done. We always do."
"Is a project what we need? What are we going to do next year – another project?" asks Mr. Salman. "Besides, we're having a hard time getting volunteers anyway. May be we need to think about how we can operate with less funds. For example, how can we get more food donation on a regular basis so we won't have to buy as much food?"

Ms. Robina jumps in. "Great idea! You can work on that while we also try to raise funds. We can't leave any stone unturned."

"Time out," says Mr. Basit. "These are all very good ideas, but we have limited funds and volunteers and a growing demand. We need to do something now to make sure we don't have to close our doors in two months. I think we all agree we need to undertake some type of initiative. But I'm not sure we all agree on the objective."

Questions:
1. What are the needs that have been identified?
2. What is/are the project objective(s)?
3. What are the risks involved in the project?
Idea Solution will be upload soon

Wednesday 26 October 2011

CS401 Assignment No. 01 Fall 2011 Idea Solution

Assignment

Question No. 1:

a. Suppose architecture A has 14-bit address bus. What is maximum size of memory that can be accessed in this architecture? (Show the steps for calculating maximum accessible memory) (5 marks)

b. An architecture B has a maximum limit of 2GB memory. How many address bits are required for this architecture? (Show the steps for calculating required number of address bits) (5 marks)



Question No. 2:
What are the first and the last physical memory addresses accessible using the following segment values? (2 mark each)
a. 0000
b. FFFF


Question No. 3:

Calculate physical address using the following segment offset pairs.
(1 mark each)
a. ABCD:1234
b. 1234:ABCD
Question No. 4:

What is effective address generated by the following instructions? Every instruction is independent of others. Initially BX = 0xFF00, SI=0x00FF
(1 mark each)

a. mov ax, [BX+SI]
b. mov ax, [BX+1024] (1024 is in decimal)

Question No. 5:

What are the contents of memory locations 720, 721, 722 and 723 if the word 4321 is stored at offset 720 and the word 8765 is stored at the offset 722 using Big Endean format? (2 marks)

Address Contents

0x720
0x721
0x722
0x723


Idea Solution will be upload soon

Cs604 Assignment no 1 Fall 2011 Idea Solution

Question # 1:
“Commonly it considered that degree of multiprogramming is affecting CPU utilization
and always increase the CPU utilization.” In either case “yes” or “no”, justify the given
statement with strong arguments. Write the answer in your own words.
Question # 1:
Write a program in C language and run it in Linux environment that
displays the following results:
1. Display the Process ID of the Parent processes
2. Then execute a fork() call
3. If call is successful on fork( ) execution then display the process identifier
of the Child process which returned to the Parent process Or Display the
Process ID of Child process
4. Show that Process ID of the Parent process does not change before and
after fork() call.
5. Child process display a message “I AM CHILD PROCESS”
6. Parent process display a message “I AM PARENT PROCESS”

Solution will be upload soon

ENG001 Assignment no 1 Fall 201 Idea Solution

ENG001 (Elementary English)

Fall 2011
Assignment # 01
Total Marks: 15

Objective:
To access students’ knowledge about basic concepts of writing
Instructions:

1. Late assignments will not be accepted.
2. If the file does not properly run, it will be marked zero.
3. Plagiarism will never be tolerated. Plagiarism occurs when a student uses work done by someone else as if it was his or her own.
4. If any assignment is found copied work, no marks will be awarded and the case may be referred to the academics for disciplinary action.
5. No assignment will be accepted through e-mail.
6. The font color should be preferably black and font size should be 12 Times New Roman.

Q1: “Effective writing is much more a thinking process than a writing process.” Discuss. 5

Q2: Choose the best option: 5

Which of the following is an external source of information?
• Libraries
• Internet
• Resource persons
• All of the above (Correct)

Which of the following is NOT included in process of writing?
• Invention & Collection
• Conciseness & Consideration (Correct)
• Organization & Drafting
• Revising & and Proofreading

Which of the following emphasizes to ‘put client first’?
• Creativity
• Conciseness
• Consideration
• Completeness

SMOG stands for __________;

• Simple Measure of Gobbledygook (Correct)
• Standard Measure of Gobbledygook
• Simple Management of Gobbledygook
• Standard Management of Gobbledygook

‘Students should simply open their minds to whatever pops into them’ refers to;

• Thinking
• Brainstorming
• Writing
• Listing

Q3: Recall the concept of Clustering and Listing to fill in the following blanks. 5



Advantages of Internet
1. Communication
2. Information
3. Entertainment
4. Downloading Software
SOLUTION will be upload soon

ENG301 Business Communication Assignment 1 Fall 2011 Idea Solution

Assignment 1 (Fall 2011)
Business Communication-ENG301
Total Marks: 15
(Lesson No. 1-9)

Objectives:
The assessment of students’ understanding of Business Communication and to get them motivated for acquiring conceptual knowledge and practical application of the subject.


Instructions

• Late assignments will not be accepted.
• If the file is corrupt or problematic, it will be marked zero.
• Plagiarism will never be tolerated. Plagiarism occurs when a student uses work done by someone else as if it was his or her own; however, taking the ideas from different sources and to express it in your own words will be encouraged.
• No assignment will be accepted via e-mail.
• The solution file should be in Word doc form; the font color should be preferably black and font size should be 12 Times New Roman.


Q1. ‘60- 65% of an effective business message is conveyed through wordless communication.’ Comment (5)


Q2. Business world is static without Feed Back. Comment (5)


Q3. ‘Misconceptions lead to miscommunication’. Discuss the statement with examples from business world/workplace. (5)

MTH 302 Assignment no 1 Fall 2011 Idea Solution

Assignment # 1
MTH302 (Fall 2011)
Total marks: 30
Lecture # 1 to 8
Due date: 01-11-11

Question No. 1:
A company bought shares at Rs. per share and sold them after year at Rs. With a commission rate of buying and selling the stock. What is its return on investment?

Question No. 2:
In a domestic business an owner invests 15,000 Rs at 15% per annum for a period of 66 months. Calculate compound interest and also future value.

Question No. 3:
How much money deposited now will provide payments of Rs. 10,000 at the end of each quarter for 15 years if interest is 12% compounded quarterly.
Idea Solution will be upload soon

CS 507 Assignment no 1 Fall 2011 Idea Solution

CS507- Information Systems
Total Marks: 10
Due Date: 31/10/2011

Q#1: A Shoe manufacturing company wants to transfer its manual working system into computerized based information system. Suppose you are in the design team who is developing a technology based information system.

What factors would you consider while developing a new system? Mention at least five factors. [5 marks]

Q#2: Given diagram belongs to a certain system. Identify that the diagram belongs to closed loop system or open loop system? Give three valid reasons to support your answer. [ 2+3 marks]

Solution:



Solution Q 1.


Information Systems


In modern age, there has been felt a growing need for the use of information being in the design team I will consider the following five important factors:
 Transforming Industrial Economies
 Transformed Business Enterprise
 Emerging Digital Firms
 Emerging Global Economies
 Effective and efficient utilization of resources


Emerging Global Economies
High level of foreign trade has resulted in imports and exports which require inter linkage for smooth coordination. Core business functions (manufacturing, finance and customer support) have been distributed in different countries. 


Coordination
Transforming Industrial Economies
Industrial economies have started merging as knowledge-and-information-based economies. Manufacturing activities being shifted to low wage countries. More opportunities are available in education, health care, banks, insurance firms and law firms. More knowledge and information intense products are being created. Higher commitment expected from customer e.g. overnight package delivery, worldwide reservation systems.


Transformed Business Enterprise
The structure of business enterprise have also changed, initially the organizations used to be Hierarchical, Centralized, Structured following a Fixed Set of SOP’s. However, now the organizations are moving towards more Flatter, Decentralized and Flexible structures. Information Technology makes it convenient and efficient to promote this new culture.


Emerging Digital Firms
Firms where all significant business process and relationships with customers and suppliers and employees are digitally enabled and key corporate assets are managed through digital firms. This results in rapid response with more flexibility to survive and getting more global.


Effective and efficient utilization of resources
Effectiveness and efficient usage of resources has become a dire need of today’s organization and it cannot be ignored 


Solution Q 2.
This system is a closed system because
 Input is manipulated in a controlled mechanism
 It is not connected with the environment
 Neither environment exerts any influence on the system nor does system influence the environment

BNK603 GDB No. 1 Fall 2011 Idea Solution

Discussion Question
Recently Telenor Pakistan and Tameer Microfinance Bank have jointly introduced "EasyPaisa" branchless banking services including mobile bank account, money transfer, bill payments all over Pakistan. In your opinion, how this unconventional banking service can contribute towards the reduction of financial exclusion in Pakistan? Discuss with rationale.
Idea Solution wll be upload soon

Eng 101 Assignment no 1 Fall 2011Idea Soultion

Q1: Read the following passage and answer the given questions in your own words. (10)

1-World War II was coming to an end in the Philippines. One day in January 1945,
2-Mother asked me to prepare our horse and caretela carriage so she could go see a
3-doctor. While I was in the fields looking for the horse, I came upon several men
4- chasing a Japanese soldier. Forgetting my task, I immediately joined the chase. After
5- an hour, the hapless soldier was cornered by the river's edge. The mob showed no
6- mercy. They hit him with clubs and stabbed him with bolos. After he died, they kicked 7-his lifeless body, cursed him and spat on his face. The wounds of war – hatred,
8- revenge, prejudice, ruthlessness – were spread raw before me.
9-I left my village in June 1945 to start a new life in Manila. In 1959, I attended a three-10-month UNESCO-sponsored community development course in Mysore City, India. 11-Participants came from Africa, Asia and Scandinavia. Entering the living quarters, I 12-was dismayed to discover that my roommate was a Japanese man. Even before we 13-were introduced to each other (his name was Kei Kiriake), I felt that a thick invisible 14-barrier had sprung up between us. Unbidden, memories of war stirred in my mind.

15-I recalled the Japanese soldier who had looted our house. Finding no money he had 16-killed my father. Now, more than 15 years later, I could barely tell the difference

17-between the soldier who almost killed my father and Kei – they were both Japanese 18-and they both deserved my contempt. One evening, Kei was writing a letter while I 19-stayed on my bed reading. "Can we talk?" I said. He stopped writing and for the first 20-time we faced each other squarely. I bluntly told him about the atrocities committed 21-by his countrymen during their three-year occupation in the Philippines. Throughout 22-my whole tirade, Kei maintained a respectful silence. When I was through, he took a 23-bundle of pictures from his suitcase and laid them on the table. They were photos of 24-Japanese survivors of the atomic bomb – people who were reduced to masses of 25-peeling skin, protruding bones and horrible deformities of all types. (word count 354)

Why does the writer use the words "The wounds of war-------were spread raw before me" in line no 7 and 8. (3)
Why did the writer feel that there was a thick invisible barrier between the two? (line no.13-14) (3)
In the last lines (from line no 21----25) throughout writer's whole tirade, Kei maintained a respectful silence and did not answer him directly. What was the reason and what was his way of answering writer's questions? (4)

Q 2: Match numbers of list A with alphabets of list B in such a way that the correct alphabet of the word should be written in font of the correct diphthong. (5 Marks)

List A List B
ɑɪ a. brown
ɔɪ b. bear
3. əʊ c. arrive
ɑʊ d. own
e ə e. enjoy
Idea Solution will be upload soon

Tuesday 25 October 2011

CS302 Digital Logic Design Assignmet no 1 Fall 2011 Idea Solution

Assignment No. 01
Semester: Fall 2011
CS302: Digital Logic Design

Total Marks: 10
Due Date: 31/10/2011

Problem Statement:

1) Convert octal number 1204 to its equivalent decimal number. (3 Marks)

2) Encode decimal number 962 in BCD. (4 Marks)

3) Convert decimal number 4095 to its equivalent hexadecimal number (3 Marks)

Deadline:
Your assignment must be uploaded/submitted on or before 31st October, 2011

Solution will be upload soon

IT 430 Assignment no 1 Fall 2011 Idea Solution

Assignment

Question 1: (6+4)

a) Convert the following IP addresses to binary and vice versa.
i)
192.168.1.10
10.50.0.20
140.128.1.4

ii)
10011011.10101011.00110101.11100101
11010101.11011011.11110101.10101111
11101111.10111011.10001101.11011111












b)
Consider the following topology in which we have 5 computers from different network which are connected with each others through 7 routers i.e. R1, R2, R3, R4, R5, R6, and R7.Assume that computer “A” wants to send data to computer E what will be shortest path leading towards computer E? Also identify the other possible paths leading towards computer E.





















Question 2: (10)

Write a program in HTML to create an online patient registration form. The patient registration form must contain information about patients that is to be admitted in the hospital. In the radio buttons Sex and Marital status only one must be selected at a time.

Your output should look like this:




NOTE: Submit “.doc” file only. Copy your HTML code of Question 2 in the same word file (You do not need to submit separate html file). Every student should provide his/her own work, exact copying of the assignment (or some portion of the assignment) from the internet or other students will lead to copy case and zero marks will be awarded. Different softwares will be used to check plagiarism in assignments. Do not put any query on MDB about this assignment, if you have any query then email at it430@vu.edu.pk

Solution will be Upload soon

CS301- Data Structures Assignment no 1 Fall 2011 Idea Solution

It is required to make a list of students registered in Data Structures course. To achieve this functionality, develop a C++ program and use linked list to store student ids and names.
Each node in the linked list will contain three items: student id, student name, pointer to next node.
When the program starts, it should display the following menu:
1- Enter student information
2- Search student by ID
3- Search student by Name
4- Delete student information
5- Print all students
6- Quit
Sample Run:
1- Enter student information
2- Search student by ID
3- Search student by Name
4- Delete student information
5- Print all students
6- Quit
Enter your choice: 1 (Suppose user entered 1)
(Now the details of Student will be entered)
Student ID: bc080400001 (Suppose user entered bc080400001)
Student Name: Ahmad (Suppose user entered Ahmad)
(If user enters an ID that is already in the list, a message should be displayed “Already in the list.”)

(Main menu will be displayed again)
1- Enter student information
2- Search student by ID
3- Search student by Name
4- Delete student information
5- Print all students
6- Quit
Enter your choice: 2 (Suppose user entered 2)
Student ID: bc080400001 (Suppose user entered bc080400001)
(Now the details of Student will be displayed)
Student ID: bc080400001
Student Name: Ahmad
(If user enters an ID that is not in the list, a message should be displayed “Record not found.”)

(Main menu will be displayed again)
1- Enter student information
2- Search student by ID
3- Search student by Name
4- Delete student information
5- Print all students
6- Quit
Enter your choice: 4 (Suppose user entered 4)
(Now it will ask to enter ID to be deleted)
Student ID: bc080400001 (Suppose user entered bc080400001)
(Student record with this ID will be deleted.)

(Main menu will be displayed again)
1- Enter student information
2- Search student by ID
3- Search student by Name
4- Delete student information
5- Print all students
6- Quit
Enter your choice: 5 (Suppose user entered 5)
(Now it will print all students’ information. Suppose there were three students in the list, so it will print: )
Student ID Student Name
------------- ---------------------
bc080400001 Ahmad
bc080200010 Ali
mc070400002 Hassan

(Main menu will be displayed again)
Solution will be upload soon

CS403 Assignment no 1 fall 2011 Idea Solution

Assignment No. 01
Semester Fall 2011
Database Management Systems-CS403

Q # 1: Draw a Context Level DFD for “Online Banking System” of ABC Bank. (10 marks)
Scenario is given below:


Account Holder and IT Manager interact with the system:

• Account Holder perform following activities:
a. He can check his balance.
b. He can order a “Cheque Book”.
c. He can transfer funds from one account to another account.
d. He can pay utility bills.

• IT Manager manages the “Online Banking System”.

Q # 2: Analyze and Draw a “Cross Reference Matrix” to identify/show different reports and attributes, which are usually required by the higher management of ABC Bank (Any Bank). (10 marks)

Note: There should be 3 reports and 7 attributes in the matrix.
Solution will be upload soon

CS501 Assignment No. 01 Idea Solution Fall 2011

Assignment No. 01
Semester Fall 2011
Advance Computer Architecture - CS501


Question No 1

Write the code to implement the expression A = (B+C) * (D + E) for

1) 3-address instructions
2) 2-address instructions
3) 1-address instructions
4) 0-address instructions

In accordance with programming language practice, computing the expression should not change the values of its operands.
Solution will be upload soon

Cs601 Assignment no 1 Fall 2011 Idea Solution

Question 1: [5]
Suppose a leather firm wants to build a computer network, where it wants to connect
multiple star topologies together, which topology you will prefer to connect multiple
topologies? Explain your answer with solid reasons.
Question 2: [5]
Differentiate between frames and packets in tabular form? (Minimum five points)
Question 3: [5]
Assume eleven devices are arranged in a mesh topology. How many cables and ports are
needed for each device?
eadline
Your assignment must be uploaded/submitted till Monday 31 Oct, 2011.
Solution will be upload soon

CS614 Assignment No. 01 Fall 2011 Idea Solution

Assignment No. 01 SEMESTER FALL 2011 CS614- Data Warehousing
Question 1: [10 marks]
Data warehouse makes the enterprise’s current and historical information easily available for decision making. Suppose you have to analyze the data warehouse of a telecommunication company like telenor or u-fone or any other company. How the current and historical information can benefit the managers in decision making?
Question 2: [10 marks]
You are a Senior Analyst in the IT department of a company manufacturing auto-mobile parts. The marketing VP is complaining about the poor response by IT in providing strategic information. Draft a proposal to him explaining the reasons for the problems and why a data warehouse would be the only viable solution?
Note: Try to write answer to the point and in your own words.
Solution will be upload soon

Cs 697 Assignment no 1 Idea Solution Fall 2011

Question 1:
If we can reach a node B directly from G with a cost of 5 and via G A B with a cost of 4 then which path should
we choose according to dynamic programming to reach the same node and why? [3 marks]
Question 2:
Analyze and mention a search strategy that falls into heuristically informed search category and that guarantees to
always find out a solution? Give reason to support your answer? [5 marks]
Question 3:
For the game tree given below, show which branches would be pruned by Alpha-beta pruning and
Write down all the node values propagated by Alpha-beta pruning? [5 marks]
Solution will be upload soon

Cs609 Assignment no 1 iDEA SOLUTION Fall 2011

Assignment [Total Marks 20]

Q No. 1
Write the C Program that should print the 25 rows of DOS screen with different colors, i.e. your DOS screen should be displayed in such a way that every two consecutive rows should have different colors. Following is the sample output of your program.


You can print the 25 rows of DOS screen with any colors but the two consecutive rows should have different colors so that we can identify them from each other.
Solution will be upload soon
Note: Submit .C files only. Send email at cs609@vu.edu.pk for any assignment related problem.

Cs 605 Assignment no 1 Idea Solution Fall 2011

Q1. Suppose you are working as a project manager in a leading software product company. You were assigned to develop complete software for JS group. JS Group controls and operates market-leading financial services companies in Pakistan across sectors including asset management, commercial banking, Islamic banking, insurance, investment banking, financial advisory services, stock brokerage, company research, consumer credit rating, factoring and micro finance. Currently all there departments working manually, so you need to develop software that will replace the current manual system with the computerized system. You also assigned to develop a dynamic website for this company.

What team structure for the above situation would you choose and why? (10 Marks)

Solution will be upload soon

Q2. You are working on a project and you have to decide which language you will select for its development. Let us consider that the same functionality is implemented in Assembly Language and in Java language. Lines of code in Assembly language are 5 times as compared to Java language because coding in Assembly is much more difficult and time consuming as compared to Java. The requirements, design and documentation activity in person month are the same in both the languages but integration & testing and Management activity is twice in assembly language

You have to fill out the above table according to the given scenario and calculate total effort, total cost, and lines per person month. (10 Marks)

Assembly Language Java Language Difference
Source code Size 10,000
Activity in person months
Requirements 5
Design 10
Coding 40
Documentation 10
Integration and Testing 15
Management 15
Total Effort 95
Cost per Line Rs25 Rs50
Total Cost
Lines Per Person-Month

CS615 Software Project Management Assignment no 1 Idea Solution Fall 2011

Software Project Management
Assignment # 01
Assignment:



Q.NO.1

Progressive elaboration is the characteristic of the project. Progressively means "developing thoroughly in steps and continuing steadily by increments" while elaborated means “worked out with care and detail, developed thoroughly” Considering the above definition, give progressive elaboration of Motorway construction project.

Q.NO.2

Why project procurement management is most important? Give an overview.

Solution:



CS615 Assignment No. 1 Fall 2011 Solution


Q.NO.1
Progressive elaboration is the characteristic of the project. Progressively means "developing thoroughly in steps and continuing steadily by increments" while elaborated means “worked out with care and detail, developed thoroughly” Considering the above definition, give progressive elaboration of Motorway construction project.


Solution:
A highway is any public road. In American English, the term is common and almost always designates major roads. In British English, the term (which is not particularly common) designates any road open to the public. Any interconnected set of highways can be variously referred to as a "highway system", a "highway network", or a "highway transportation system". Each country has its own national highway system.


A highway is designed exclusively for high-speed vehicular traffic, with all traffic flow and ingress/egress regulated. They are known by various terms worldwide such as motorway, parkway, expressway, etc.


Highways provide an unhindered flow of traffic, with no traffic signals and intersections (where two roads meet). They are free of any at-grade crossings with other roads, railways, or pedestrian paths. 


A highway is also known as Motorway. So don’t get confused.


Construction techniques:
The most frequent way freeways are laid out is usually by building them from the ground up after things such as forestry or buildings are cleared away. Sometimes they deplete farmland, but other methods have been developed for economic, social, and even environmental reasons. Full freeways are sometimes made by converting at-grade expressways or by replacing at-grade intersections with overpasses; however, any at-grade intersection that ends a freeway remains. Often, when there is a two-lane undivided freeway or expressway, it is converted by constructing a twin corridor on the side by leaving a median between the two travel directions. The opposing side for the old two-way corridor becomes a passing lane.


Other techniques involve building a new carriageway on the side of a divided highway that has a lot of private access on one side and sometimes has long driveways on the other side since an easement for widening comes into place, especially in rural areas.


When a "third" carriageway is added, sometimes it can shift a directional carriageway by 50–200 ft (or maybe more depending on land availability) as a way to retain private access on one side that favors over the other. Other instances involve constructing a service drive that shortens the long driveways typically by less than 100 m.


Environmental effects:
Environmental effects are related to curiosity of the project and work with care and develop thoroughly. 


Controlled-access highways have been constructed both between urban centers and within them, leading to the sprawling suburban development found near most modern cities. 


They ideally serve to reduce travel times and accident rates, though the higher speeds have increased the severity and death rates of the collisions that do occur.


Q.NO.2
Why project procurement management is most important? Give an overview.


Solution:
Project Risk management is the systematic process of identifying, analyzing, and responding to project risk. It includes maximizing the probability and consequences of positive events and minimizing the probability and consequences of adverse events to project objectives.


Project procurement management is important because of the following factors:


• Risk Management Planning—deciding how to approach and plan the risk management activities for a project.
• Risk Identification—determining which risks might affect the project and documenting their characteristics.
• Qualitative Risk Analysis—performing a qualitative analysis of risks and conditions to prioritize their effects on project objectives.
• Quantitative Risk Analysis—measuring the probability and consequences of risks and estimating their implications for project objectives.
• Risk Response Planning—developing procedures and techniques to enhance opportunities and reduce threats to the project’s objectives.
• Risk Monitoring and Control—monitoring residual risks, identifying new risks, executing risk reduction plans, and evaluating their effectiveness throughout the project life cycle.
• These processes interact with each other and with the processes in the other
• knowledge areas. Each process generally occurs at least once in every project.

CS304 Object Oriented Programming Assignment no1 Idea Solution 2011

Assignment:

In this course we are going to develop software for “Electronic Card System” that will computerize all the necessary processes. This application will facilitate the Normal user, Member User and Administrator in running and managing the card creation, customization and sending to appropriate receiver. We will mainly focus on these aspects,


1. Normal User related functionalities
2. Member User related functionalities
3. Administrator related functionalities

The explanation of these three systems is given below,

1. Normal User related functionalities :
Normal user/visitor can sign up the application by just providing username and email address. He/She can view different categories of cards (birthday, marriage, friendship etc). He/She can select card form the given categories and then send to the appropriate receiver by providing email address and name of the receiver. Normal User can be a member user upon request.


2. Member User related functionalities:
Member/Registered user can perform all the functionalities of Normal user along with some additional benefits. He/She can customize cards as per his/her own will. For this He/She can select card from a list of card category, select sound (background music), and a textual space. After Creation of card he/she can send to a desired person. He/She can additionally make up a profile and a contact list. Member User can discard/cancel any transaction under process.
a. We will store necessary attributes for member user such as,
(name, age,e-mail address, , roll no, telephone #, NIC number, …..)
b. We will store necessary attributes for cards and category as,
(Card ID, category ID, music ID, name …..)


3. Administrator related functionalities:

Administrators can add/modify/delete cards and its related categories, music. Some new cards can be inserted into any existing category or in a new category. Modification of card deals change in category from one to another, also some new sound files (music) can be added. Old ones can be deleted as well.
Administrator can add/delete a user.

.


The tasks you have to do are:

1. You have to identify the main entities (objects) for this system.
2. You have to find out the relationships between these objects.
3. You will have to find the necessary attributes and functions that need to be associated with each object to implement the functionality mentioned above.
4. You will make a final comprehensive diagram show and all objects and their relations along with their attributes and functions.

Note: Use all concepts you have studied so far like abstraction, encapsulation, and inheritance and sub typing, Information Hiding and Polymorphism wherever applicable. You can use any tool for drawing like MS Office or Visio.


Important things to consider:

1. As happens in real world that everyone visualize a problem in different way so the solutions of all students should be according to their own thinking not taken from some source.
2. As this is preliminary phase of our system so it is recommended that you identify as much objects and their relationships as you can some of them may be eliminated in next assignments.


Example:

A snapshot of final object model from the solution of previous semester first assignment is shown below, (you need not to worry about data types at this moment)

Example Object Model for Learning Management System
Solution will be upload soon

MTH202 Assignment no 1 Fall 2011 Idea solution

Assignment 1 Of MTH202 (Fall 2011)

Maximum Marks: 20
Due Date: Nov 02, 2011

DON’T MISS THESE: Important instructions before attempting the solution of this assignment:
• To solve this assignment, you should have good command over 01 - 09 lectures.
• Try to get the concepts, consolidate your concepts and ideas from these questions which you learn in the 1 to 9 lectures.
• Upload assignments properly through LMS, No Assignment will be accepted through email.
• Write your ID on the top of your solution file.
• Don’t use colorful back grounds in your solution files.
• Use Math Type or Equation Editor etc for mathematical symbols.
• You should remember that if we found the solution files of some students are same then we will reward zero marks to all those students.
• Try to make solution by yourself and protect your work from other students, otherwise you and the student who send same solution file as you will be given zero marks.
• Also remember that you are supposed to submit your assignment in Word format any other like scan images etc will not be accepted and we will give zero marks correspond to these assignments.
Question 1; Marks: 5

Show that by using laws of logic.

Question 2; Marks: 10

Construct a logical circuit and truth table for the given statement;



Question 3; Marks: 5

Prove that .

(Hint: don’t specify by taking sets, use general approach)
Solution will be upload soon

CS201 Assignment No. 01 Fall 2011 Idea Solution

Assignment No. 01
Semester: Fall 2011
CS201: Introduction to Programming Total Marks: 20






Assignment

Problem Statement: Virtual Restaurant

You are required to write a program for BILLING SYSTEM of a virtual restaurant. The basic idea is that by entering the meal price, your billing system will calculate the Sales Tax, Total amount and Complement offer upon that meal. The program will process the billing of undetermined number for customers. At the end, program will show sum of total amount of all the customers.

Detailed Description:
Billing System should work as under:

 You are required to take meal price as input from user.
 After getting this input, program will calculate the sales tax on it as given below:

Meal Price Sales Tax applicable
Less than or equal to 1000 No sales Tax on it.
Greater than 1000 and less than or equal to 2000 1% of meal price.
Greater than 2000 2% of meal price.

 After calculating the sales tax, program will calculate and display the total amount of the meal according to given formula:
Total Amount = Meal_Price + Sales_Tax
 Now, program will prompt to serve the complement sweet dish to customer on the basis of total amount as given below:


Total Amount Sweet Dishes
Less than 1000 Candies
Greater than or equal to 1000 and less than 2000 Sweet Bread
Greater than or equal to 2000 and less than 3000 Pudding
Greater than or equal to 3000 and less than 4000 Cake
Other amounts Trifle











 After displaying the information of one customer, the program should ask the user if he/she again wants to process the bill of another customer. The user will be given two options. If user selects “Y or y”, the program will start the processing of another customer. If user selects “N or n”, the billing system exits.

 Before exiting from billing system, this program should display the total number of customers it processed, and sum of total amount of all the customers.


Sample Output:
Solution will be Upload soon

CS402 ASSIGNMENT NO.1 Fall 2011 Idea Solution

Theory of Automata
CS402
ASSIGNMENT NO.1

Total Marks= 20 (4+4+4+4+4)


Assignment Submission Deadline

Your assignment must be uploaded before or on 31-10-2011 [upload your assignment well before due date to avoid any assignment uploading related issues]


Rules for Marking

It should be clear that your assignment will not get any credit if:

The assignment is submitted after due date
The assignment is copied


Objectives

Objectives of this assignment are to make students able to understand the following concepts,

Basic concepts clarification
Recursive Definition of a language
Regular Expression
Finite Automata


Question No.1 Basic Concepts [Sets, Letters, Valid Alphabet, Languages, Strings and Words]

a. Which of the following are strings generated from alphabet Σ = {a, b}

i. abba

ii. baa$a

iii. abc.

iv. ba?

v. b.bba

b. Which of the following are valid words for language of all strings ending with bab defined for alphabet Σ = {a, c , bab}

i. acccba

ii. cccbaa

iii. cccbab

iv. babbb

v. baaab




Question No.2 Defining Languages [Using Recursive Definition, Re’s, Fa’s]

Give recursive definitions of following languages defined over alphabet Σ = {a, b}

Having all strings starting with b and having length greater than 2
NOT having ab at any place.


Question No.3 Regular Expressions

Give Regular Expression for each of the following language defined over alphabet Σ = {a, b}

Even Length strings ending with b
Strings with b’s count multiple of three


Question No.4 Models To Recognize Languages (Fa’s)

Give Finite Automata (FA) for each of the following language defined over alphabet Σ = {a, b}

Language having all strings NOT containing aa at any place
Language of all strings NOT STARTING with bb


Question No.5 Models To Recognize Languages (Nfa’s)

Give Non Deterministic Finite Automata (NFA) for each of the following language defined over alphabet Σ = {a, b}

Language of all strings STARTING WITH bba
Language having all strings NOT having even no of a’s and b’s
Solution will be Upload soon

Cs101 Assignment no 1 Idea Solution Fall 2011

Q.1. There are multiple ways to enhance the performance of a computer system. Discuss what role a cache can
play in boosting up the performance of a computer system? (5 Marks)
Q.2. Generally there is a concept that “Memory” and “Storage” are same terms. Do you agree? Justify your
opinion with a real life example. (5 Marks)
Q.3. Convert the following Octal Number to Hexadecimal Number by writing each and every step of conversion
process: (5 Marks)
(53324)8 => (?)16
Note:
o Assignment should be in your own wordings not copied from net, handouts or books.
o Your answer should be “to the point”
Solution will be upload soon

Cs504 Software Engineering 1 Assignment no 1 Fall 2011 Idea Solution

Q1 [Marks 12]

Consider Email Manager Software (e.g. Outlook express). Following business level requirement was taken from its Requirement Specification document.

“User will be able to send/receive and store emails efficiently and securely to/from any domain (e.g. gmail, mail.yahoo etc)”

Being a Software Engineer, drive the following (from above mentioned business level requirement):


User level requirement(s)
Functional requirement(s)
Non functional requirements(s)





Q2 [Marks 8]

“During the construction of Hydro Power project, it was suggested to shift the exit way, 50m left to its current position when project was nearly to be completed. However the task was going to be very difficult and costly. It could be accomplished easily if realized earlier.

Keeping in mind the concept of “change”, apply the above scenario in case of software development. Also mention the most suitable and worst phase for a needed change, in case of software development regarding cost and efforts.
Idea Solution will be upload soon

FIN 625 Gdb no 1 Fall 2011 Idea Solution

In these two countries (as well as others) women are given a lower standard of education and are usually either at home or doing low paid work. So unless

they get their act together really soon there will be many vacancies for skilled workers which cannot be filled , the result will be a lower rate of increase of the GDP over the coming years compared to the rate it would rise if women were properly educated and had access to skilled work.

Another point that if female population increase, it will lead to more women of child bearing age that will result in more population increase and hence burdening the resources of a country.

may be the relation ship is that when population will grow, there may not be many employment opprtunities and thus lower GDP or other way around, when population increases, the gov. has to spent more of money on the welfare of the public and thus less money is available for investment etc.

one more point,
females usually in these countires assume theri traditional roles.so they often are stay at home individuals. so basically they contribute nothing to the GDP.

another thing, is the salary (dont know if this point is relavent) females usually do not tent to have high paid salaries so they have less to spend and less to contribute to the economy.

so its not all negative.
you can also give positive points well that growth in female population ratio will not have an entirely negative effect on GDP.
sOLTION WILL BE UPLOAD SOON

STA 301 Assignment no 1 Fall 2011 Idea Solution

Assignment.1 (Lessons 1-10)

Question 1:Marks: 5+5=10
i) From the table given below, Find
(a) Class boundaries
(b) How many men fall in the age of 50 or above?
(c) How many men fall between the age group of 60 and 69?

Age Group (Men)

f
20-29

5
30-39

4
40-49

5
50-59

8
60-69

12
70-79

16
Total

50

(ii) Write down the following figure in the form of frequency table and also find the relative frequency.

Question 2:Marks: 5+5=10
(i) Calculate the mode from the following continuous distribution.

Height

Number (f)
57.5-60.0

6
60.0-62.5

26
62.5-65.0

190
65.0-67.5

281
67.5-70.0

412
70.0-72.5

127
72.5-75.0

38
Total

1080

(ii). Use the stem and leaf plot to answer these questions.

Statistics Test Scores
Stem

Leaf
6

1 1 4 6 7 8
7

2 3 5 7 9
8

1 3 5 6 6 7 7 8 9
9

0 0 3 4 6 8 9 9
10

0 0

a) What is the best test score?
b) How many students take the test?
c) How many students scored 90?
d) What is the lowest score?
e) Find the difference between the high and low scores.

Question 3:Marks: 3+3+4=10(i) Find the median for the following discrete frequency distribution.

Number of pupils per class

Number of Classes
20

1
21

0
22

1
23

3
24

6
25

9
26

8
27

10
28

7
Total

45


(ii) Calculate the weighted mean from the following data
Item

Expenditure

Weights
Food

290

7.5
Rent

54

2.0
Clothing

98

1.5
Fuel and light

75

1.0
Other items

75

0.5

(iii) A man gets a rise of 10% in salary at the end of his first year of service and further of 20 % and 25 % at the end of the second and third year respectively. The rise in each case is calculated on his salary at the beginning of the year. To what annual percentage increase is this equivalent?

Mkt 630 GDB no 1 Idea solution Fall 2011

Discussion Objective:
To understand distinct marketing approaches which are used for the same product in its different stages of product life cycle and to realize the difference in these approaches.

Point of discussion:
Assume that a group of business editorial writers related to leading newspapers of Pakistan are discussing the current business practices in Pakistan. You are there as a third party observer of this discussion and have to closely observe what they are talking. The description of discussion is as following. One of them initiated the discussion by saying that in the recent past it has been observed in the IT equipments market of Pakistan that used IT equipment are being imported and traded in local market at a massive level. The major IT equipments being traded are personal computers (both the desktop systems and laptops), printers, monitors, key boards and mouse pointers. Then he put forth a question that what can be the possible reason behind importing these used equipments? Are most of these products faulty and out of order and so these are firstly repaired and then sold in Pakistan or there is any other reason. Another question was raised that if these products are still usable then why the foreign countries sell these to Pakistan? One editor came up with the point that might be these products are exported to Pakistan because these products were at the last stage of their product lives and were declared outdated in the foreign countries. You have now been welcomed by them to bring your own flavor in discussion and to bring the discussion to a conclusive level as they are not clear about the whole happening.

Discussion Agenda:
You have to give your opinion by responding to the questions raised and opinions given by them.


Solution:


Small scale surveys and focus groups are low cost ways to gather information from potential and existing customers. Also most of the secondary data (statistics, demographics, etc.) is available easily to the SMEs to analyze according to their needs

Eng201 Assignment no 1 Fall 2011 Idea Solution

Assignment # 1
Total Marks: 15
Due Date: November 1, 2011


Objective:
To assess students’ understanding of the course and to prepare them for practical application of communication skills through writing practices.


Instructions:


Late assignments will not be accepted.
If the file is corrupt or problematic, it will be marked zero.
Plagiarism will never be tolerated. Plagiarism occurs when a student uses work done by someone else as if it was his or her own; however, taking the ideas


from different sources and to express it in your own words will be encouraged.
No assignment will be accepted via e-mail.
The file should be in Word doc form; the font color should be preferably black and font size can be 12 Times New Roman.


Question No.1 (10)
A well reputed Multinational Company urgently requires marketing executives for its Islamabad branch. In order to be successful in this position; the candidate must be qualified to degree level or equivalent and must have experience in e-marketing. Good IT skills are necessary and an understanding of HTML is required. The candidate should have excellent interpersonal and communicational skills. Your detailed resume should reach by 20th November 2011 to 843, CII Gulberg Lahore.




Question No.2 (5)
Arrange five pairs of matching statements from the following and do tell us which principle of communication has been used?
(Clarity, courtesy, consideration, conciseness, concreteness, completeness, correctness.)


After planning 10,000 berry plants, the deer came into out botanist's farm and crushed them.
I am sorry the point was not clear; here is another version.
I rewrote that letter three times; the point was clear.
I am delighted to announce that we have extended our office hours to make shopping more convenient.
You will be able to shop evenings with the extended office hours.
After our botanists had planted 10,000 berry plants, the deer came into the farm and crushed them.


In 1996 the GMAT scores averaged 600; by 1997 they had risen to 610.
We hereby wish to let you know that our company is pleased with the confidence you have reposed in us.

Students’ GMAT scores are higher.
We appreciate your confidence.
Solution will be upload soon

CS408 Human Computer Interaction Assignment No. 1 Fall 2011 Idea Solution

Assignment No. 1
Semester: Fall 2011
CS408 : Human Computer Interaction

Objective:
To learn and understand Usability Goals and evaluation.
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 cor+++++++0.
o
o The assignment is copied (from other student or copy from handouts or internet).
o Student ID is not mentioned in the assignment File or name of file is other than student ID.

For any query about the assignment, contact at cs408@vu.edu.pk

GOOD LUCK
Assignment

Here home page of 2 Search Engines are given: Marks [ 5+5]

1. Mega Spider
2. Google








Being a student, you search material for different subjects. On your system, try searching string


“What are Real Time Systems”


In both search Engines. Also try other features/links listed in Search Engines. Tell which one is better if we evaluate on basis of following “Usability goals”. Give 2-3 lines against each goal to justify your view.

1. Mega Spider

Usability Goals Mega Spider


Effectiveness


Efficiency


Utility


Learnability


Memorability



2. Google

Usability Goals
Google
Effectiveness


Efficiency


Utility


Learnability


Memorability





Note:
 Be precise in your answer
 Don’t write irrelevant/unnecessary information



Deadline:
Your assignment must be uploaded on VULMS on or before November 01, 2011.
Solution will be upload soon

CS410 Visual Programming Assignment NO 1 Fall 2011 Idea Solution

Visual Programming (CS410)
Assignment # 1


Q1 [Marks: 10]

How can you define a pair of mutually referential structures? Consider the following code

typedef struct {
int afield;
BPTR bpointer;
} *APTR;

typedef struct {
int bfield;
APTR apointer;
} *BPTR;
But the compiler doesn't know about BPTR when it is used in the first structure declaration.


Q2 [marks: 10]

How can you declare a function that can return a pointer to a function of the same type? If you are building a state machine with one function for each state, each of which returns a pointer to the function for the next state.
Solution will be upload soon

ISL201 Assignment No 1 Fall 2011 Idea Solution

ISL201 Assignment No 1 Solution

Given Scenario:
An Islamic society well portrays the bases of principal of Beliefs and righteous conduct and practice of these two principles governs the Islamic society as

well. An Ideal Muslim depicts Islamic values through his conduct in practical life and it also forms the very basis of his belief as a Muslim. Holy Quran and

Holy Sunnah serve as a role model for Muslims. Islamic society also constitutes hundreds of mosques, Islamic centers and organizations. But all these sources

of spiritualism seem to be ineffective in moral characters of Muslims.

Given Question:
You are to point out what is missing and becoming a cause of this downfall in the Beliefs and values of Islamic society and suggest how we can overcome these
issues.

Answer: from my point of view i think the missing thing is taqwaa in Muslims. Because; if we fear from Allah then every thing that we do will be according to

him and his Prophet (S.A.W.W). The missing thing is taqwaa. Because if we do not fear from (Allah) then whatever we do it will be ineffective in moral.Taqwa

means: to cleanse or purify the heart and the soul. Some Aayaat in Sort ush-Shams in which Allah says proves this fact: " By the sun and its rising sunshine,

and by the moon when it comes after the sun, and by the day when it brightens, it, and by the night when it enshrouds it, and by the heaven and as He made

it, and by the earth and as he extended (outspread) it, and by the soul and as He shaped it, then He inspired it understanding of licentiousness and warding

off! Verily prospered he who purified it, and failed he who threw it into dust [91:1-10] Among the mission of Prophet (SAAW) Allah sent him with the command

to purify the souls of the Muslim in particular and of mankind in general. Before that they had been lying in manifest forgetfulness.” (62-2) In this ayah

the word hikmah is often translated as wisdom. Imam Shafi, one of the greatest scholars of Islam, said that when Allah mentions Hikmah in the Quran it refers

to the Sunnah of Prophet (SAAW) in addition of this ayah we see that Prophet (SAAW) was sent with the three tasks:

1) To teach the Qur’an.
2) To teach the Sunnah.
3) To show the means of purifying the soul.

This purification is obtained by doing the proper acts of 'ibaadah and by avoiding sins and disobedience.
Solution will be upload soon

CS502 ASSIGNMENT no 1 Fall 2011 Idea Solution

Fundamentals of Algorithms
CS502-Fall2011
ASSIGNMENT1
Deadline
Your assignment must be uploaded/submitted at or before 1st November 2011.
Uploading instructions
Please view the assignment submission process document provided to you by
the Virtual University to upload the assignment.
Rules for Marking
It should be clear that your assignment will not get any credit if:
oThe assignment is submitted after due date.
oThe submitted assignment does not compile or run.
oThe assignment is copied.
Objectives
This assignment will help you to understand the concepts of Asymptotic Growth, making
analysis of pseudo code, recurrence relation development, asymptotic function
understanding and iterative solutions for recurrences.
Guidelines
RULES FOR CALCULATING TIME COMPLEXITY AND BIG-OH
Rule 00
Normally these formulas are very handy:
If x y = z then y z x = log
Also,
( )
2 1
1
n
n
i
i a a n a + = Σ=
( 1)
1 2
+ = Σ=
i n n
n
i
r
r r
m m
k
k


=
+
= Σ
1
1 1
0
( for n 1)
6
( 1)(2 1)
1
2 >=
+ +
= Σ=
i n n n
n
i
Rule 0
The condition that stops a loop executes ONE MORE time than the loop itself
(the last time is when it is evaluated false)
Rule 1
for (i=0;i0;i=i-k) Anything inside the loop will run approximately n/k times
Rule 3
for (i=1;if2(x) for positive values of x then the function f1(x) is said to have
greater growth rate then f2(x). For example f1(x)=x5 and f2(x)= x6 it is obvious that f1(x)
has greater growth rate ( 26 > 25).This concept relate to complexity of algorithm ,an
algorithm having greater growth rate function means the algorithm has greater
complexity here f2(x) is more complex then f1(x).
Estimated Time 2.5 hour
For all parts of the question to understand maximum time is 1.25 hours and for
solution maximum time is 1.25 hour. It all depends upon your sheer
concentration.
Question (4*5)
Write piece of pseudo codes having the following time
complexities:
a) T1 (n) =n+
0
n
i
i
= Σ
b) T2 (n) =6n (log12n) +1+ (m/7) log (m)
c) O (z+m)
d) T3 (n) =
1
5 (1/)
n
i
n i
= Σ
Note: Where the base of “log “has not been mentioned take it as base “2”.
Solution will be upload soon