Wednesday, October 14, 2009

Object Oriented Programming (CS304) Assignment No.1

Please for help join us vuhelp.com/forum

Object Oriented Programming (CS304)

Assignment No.1

Deadline

Your assignment must be uploaded/submitted before or on 18th Oct, 2009.

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:

o The assignment is submitted after due date

o The assignment is copied

Objectives

This assignment has been designed so that you would be able to identify objects and their relationships from the given problem statement(s). After the completion of this assignment you should have a good grasp on:

o How to analyze a problem statement with the view of objects and their relationships

o How to represent a set of objects and their relationship among them graphically.

Assignment

Consider the case study:

A team has two types of players: Batsman, Baller. It is required to assess their performance in a particular tournament and thus find out the best player in each of the categories. The assessment criterion for each type of player is different. For batsman, it is the average of his scores through out the tournament. For ballers it’s the number of wickets taken in the tournament. Thus the performance is determined on the basis of score made (in-case of batsman), wickets taken (in-case of baller). There should be a display function that displays all the information of player of a particular category.

Design a class hierarchy for the players in which you are required to find out the best player in each category according to their performance in a tournament.

For this, you need to identify classes/objects, attributes against each class/object, operations against each class/object, type of association between (aggregation, composition or inheritance) classes/objects.

After identifying them, you need to make an object model. Your design should be such that which can be used to declare a list of players belonging to each category.

What to submit

You are simply required to make an object model in a word file and send it as your assignment.

Assignment No.1 (Course STA301) Fall 2009 (Total Marks 30)

Please join for help vuhelp.com/forum

Assignment No.1 (Course STA301)

Fall 2009 (Total Marks 30)

Deadline

Your Assignment must be uploaded/ submitted before or on

23:59 October 20, 2009

(STUDENTS ARE STRICLY DIRECTED TO SUBMIT THEIR ASSIGNMENT BEFORE OR BY DUE DATE. NO ASSIGNMNENT AFTER DUE DATE WILL BE ACCEPTED VIA E.MAIL).

Rules for Marking

It should be clear that your Assignment will not get any credit IF:

  • The Assignment submitted, via email, after due date.
  • The submitted Assignment is not found as MS Word document file.
  • There will be unnecessary, extra or irrelevant material.
  • The Statistical notations/symbols are not well-written i.e., without using MathType software.
  • The Assignment will be copied from handouts, internet or from any other student’s file. Copied material (from handouts, any book or by any website) will be awarded ZERO MARKS. It is PLAGIARISM and an Academic Crime.
  • The medium of the course is English. Assignment in Urdu or Roman languages will not be accepted.
  • Assignment means Comprehensive yet precise accurate details about the given topic quoting different sources (books/articles/websites etc.). Do not rely only on handouts. You can take data/information from different authentic sources (like books, magazines, website etc) BUT express/organize all the collected material in YOUR OWN WORDS. Only then you will get good marks.

Objective(s) of this Assignment:

  • The assignment is being uploaded to strengthen the students’ BASIC concepts regarding data.
  • How to recognize and differentiate among different types of data in real life examples.
  • Hands on arranging and displaying already collected data into an organized form, using given statistical method.

Assignment.1 (Lessons 1-8)

Question 1: (Marks: 4+6=10

a) Define descriptive and inferential statistics.

b) Name the appropriate method of collecting primary data in each of the following.

I. Filling in form of marriage (Nikkah Nama).

II. Women getting information from house to house regarding surf washing powder.

III. Unilever, on T.V. advertisement is asking viewers to send their answers to the question through post to the given PO Box address.

IV. Village patwari making estimates of crops.

V. Filling in data in a form sent by Education department to colleges.

VI. Providing information to the inquiry form of population census.

Question 2: Marks: 3+7=10

a) Why we use Stem and leaf plot in data sorting?

b) Compute Mean and P74 (74th percentile) from the following data.

Classes

Frequency

0.7312 – 0.7313

10

0.7314 – 0.7315

15

0.7316 – 0.7317

20

0.7318 – 0.7319

25

0.7320 – 0.7321

30

0.7322 – 0.7323

8

0.7324 – 0.7325

2

Question 3: Marks: =10

Calculate median, lower quartile and upper quartile from the following 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

Assignment No. 01 SEMESTER Fall 2009 CS601- Data Communication

Please join for help vuhelp.com/forum

Assignment No. 01
SEMESTER Fall 2009
CS601- Data Communication
Total Marks: 20
Due Date: 19/10/2009
Instructions
Please read the following instructions carefully before solving & submitting assignment:
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 ditto copy from handouts or internet).
o Student ID is not mentioned in the assignment File or name of file is other than student ID.
Note: Kindly check the template file for submitting assignment. (see announcement)
For any query about the assignment, contact at cs601@vu.edu.pk
GOOD LUCK
Marks: 20
Question 1:
From given expression in Column I match appropriate expression in Column II and put right expression
in Column III?
[10 Marks]
Column-I Column-II Column-III
Circuit-switching packets are sent towards the
destination irrespective of each
other
Mostly partial mesh where path is decided upon before
the data transmission starts
Federal Communications
Commission (FCC)
is Regulatory Agencies
Packet-switching is the way two or more computers
are linked together
Line Configuration are found in wireless connections
Question 2:
a) Identify the topology in the following diagram and justify your answer? [5 marks]
b) Assume ten devices arranged in a mesh topology. How many cables are needed .How many ports are
needed for each device? [5 marks]
Lectures Covered: This assignment covers Lecture # 1-6
Deadline
Your assignment must be uploaded/submitted at or before 19-10-2009.
A
A A
A A

Assignment No.01 Semester: Fall 2009 CS402:Thoery of Automata

Please join for help vuhelp.com/forum

Assignment No.01
Semester: Fall 2009

CS402:Thoery of Automata

Total Marks: 20

Due Date: Oct 20, 2009

Rules for Marking

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

o The assignment is submitted after due date.

o The submitted assignment does not open

o The assignment is copied.

Objective

The objective of this assignment is to provide on hand experience of:

o Recursive definition of the language.

o Writing Regular Expression of the language.

o Building of Finite Automata (FA)

Assignment

Question No.1

a) Give a recursive definition for the language L, of strings containing the substring 00 defined over ∑= {0,1}.

b) Give a recursive definition for the language L, of positive integers divisible by 2 or 7

Question No. 2

Describe the languages (in English) defined over ∑={x,y} represented by the following regular expressions.

Regular Expression

Regular Language

(x + y)* (x+y) (x + y)*

(y)* x (y)* x (y)*

(x + y)* x (x + y)* x (x + y)*

(y)* x (y)* x (y)* + (x)* y (x)* y (x)*)

((y)* x (y)* x (y)* )*

Question No. 3

Construct a regular expression defining each of the following languages defined over Σ = {a,b}:

a) all strings that start with ‘a’ and have odd length, or start with ‘b’ and have even length

b) all strings that contain at least two b’s and at most one ‘a’

Question No. 4

Build an FA over Σ={a, b} that only accepts the strings starting with ‘ab’.

Deadline

Your assignment must be uploaded/submitted on or before Oct 20,2009

Assignment No. 01 Semester: Fall 2009 CS506: Web Design & Development

Please for help join vuhelp.com/forum


ge

Assignment No. 01
Semester: Fall 2009

CS506: Web Design & Development

Total Marks: 20

Due Date: 21/10/2009

Instructions

Please read the following instructions carefully before submitting assignment:

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

§ The assignment is submitted after due date.

§ The assignment is submitted via email.

§ The submitted assignment does not open or file is corrupt.

§ All types of plagiarism are strictly prohibited.

Note: You have to upload only .java files. Assignment in any other format (extension) will not be accepted. If you will submit code in .doc (Word document) you will get zero marks. No assignment will be accepted with extension other than .java.

Objectives

The objective of this assignment is to provide hands on experience of using

§ Basic concepts of java

§ OOP concepts such as inheritance, function overriding

Guidelines

§ Code should be properly aligned and well commented.

§ Follow java naming conventions while writing class names, variables name, functions name etc

Assignment

Problem Statement

Write the code to implement the concept of inheritance for Vehicles. You are required to implement inheritance between classes. You have to write four classes in java i.e. one super class, two sub classes and one driver class.

Vehicle is the super class whereas Bus and Truck are sub classes of Vehicle class. Transport is a driver class which contains main method.

Detailed description:

Detailed description of Vehicle (Super class):

The class Vehicle must have following attributes:

  1. Vehicle model
  2. Registration number
  3. Vehicle speed (km/hour)
  4. Fuel capacity (liters)
  5. Fuel consumption (kilo meters/liter)

The Vehicle class must have following methods:

  1. Parameterized constructor that will initialize all the data members with the given values.
  2. Getters and Setters for each data member that will get and set the values of data members of class.
  3. A method fuelNeeded() that will take distance (in kilo meter) as an argument. It will calculate the amount of fuel needed for the given distance and will return the value of fuel needed for given distance. You can use the attributes ‘Fuel consumption’ defined within above Vehicle class to determine the fuel needed for the given distance. You are required to implement this functionality by yourself.
  4. A method distanceCovered() that will take time (in hours) as an argument. It will calculate the distance for the given time and speed and returns the value of distance. The formula to calculate speed is given as speed = distance/time. You can use this formula to calculate the distance.
  5. A display() method that will display all the information of a vehicle.

Detailed description of Truck (Sub class):

The class Truck must have following attribute:

Cargo weight limit (Kilo grams)

The above class must have following methods:

  1. Parameterized constructor that will initialize all data members with the given values.
  2. Getters and setters for each data member that will get and set the values of data members of class.
  3. It must also override the display() method of Vehicle class and must call display() method of super class within overridden method.

Detailed description of Bus (Sub class):

The class Bus must have following attribute:

No of passengers

The above class must have following methods:

  1. Parameterized constructor that will initialize all the data members with given values.
  2. Getters and setters that will get and set the value of each data member of class.
  3. It must also override the display() method of Vehicle class and must call display method of super class within overridden method.

Create a class Transport which contains the main method. Perform the following within main method:

  • Create an instance of class Truck and initialize all the data members with proper values.
  • Create an instance of class Bus and initialize all the data members with proper values.
  • Now, call fuelNeeded(), distanceCovered() and display() methods using objects of these classes.

Deadline:

Your assignment must be uploaded/submitted on or before 21st Oct, 2009

CS 101 Introduction to Computing Assignment # 01

Please for help join vuhelp.com/forum

CS 101 Introduction to Computing

Assignment # 01

Deadline

Your assignment must be uploaded / submitted before or on ____20-10-2009__________.

Upload Instructions

Please view the assignment submission process document provided to you by the Virtual University to upload the assignment.

Rules for Marking

Please note that your assignment will not be graded if:

· It is submitted after due date

· The file you uploaded does not open

· The file you uploaded is copied from some one else

· It is in some format other than .doc

Objective

The assignment has been designed to enable you:

  • To learn about the concept of Semantic Web
  • To learn about the decimal to binary conversion and vice versa.
  • To know about the truth table.

Question No. 1

As you have studied basic concept of “Semantic Web” in Lecture #3

You are required to read carefully the below listed definition of semantic web

“The semantic Web is an extension of the current Web in which information is given well-defined meaning, better enabling computers and people to work in cooperation.”

I need to know a very brief and precise description of the above highlighted words in a definition in your own words in a single paragraph. (Marks 5)

Question No. 2

Convert the following binary and decimal number into their respective number system.

i) 396 = ( ? )2

ii) 101011 = ( ? )10 ( Marks 5)

Question No. 3

Prove right hand side equal to left hand site by using truth table

((A+B.C).(A.C+B))’ =A’.B’+ A’.C’+B’.C’ ( Marks 5)

(NOTE: Fill the given table and make sure the sequence of input remains same as it is given in the table below)

A

B

C

((A+B.C) .(A.C+B))’

A’.B’+ A’.C’+B’.C’

0

0

0

0

0

1

0

1

0

0

1

1

1

0

0

1

0

1

1

1

0

1

1

1

Advertisement