Virtual University

CS101 Introduction to Computing Assignment No.2 April Spring 2012

Assignment No. 02
Semester: Spring 2012
Introduction to Computing-CS101
Total Marks: 20

Due Date: 02-05-2012

Objective: To develop your own JavaScript functions and using them in form.

Instructions:
Please read the following instructions carefully before solving & submitting assignment:
Assignment should be in your own wordings not copied from internet, 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 is corrupt.
o The assignment is copied (from other student or copied 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 cs101@vu.edu.pk

GOOD LUCK

Question 1 [20 marks]

Make a form in HTML document containing only one field named as Email and one Submit Button. Write your own JavaScript function to validate the email address.

The Validation should be as follows:

1. It must accept only your VU Student email address i.e; it must not accept any other student’s VU email address.
2. It must show alert on acceptance or denial of the email address after validation.
3. The name of the function should contain your student ID like CheckEmail_BC102034568.
4. If you enter your wrong student email id then it must show alert as well.
5. It must accept your student ID only at vu.edu.pk, means if you enter BC102034568@hotmail.com then it must not accept it.
6. There must be unique alerts for each error; like if the length of the student ID is larger or smaller than the original ID then the alert should be according to that.
7. During each alert, the entered email address must also be shown in the alert box like: “BC102034560000008@vu.edu.pk is not your Valid Email address”

Hint: See the attached sample html file for simply checking @ and dot in an email address.

Note:

o Assignment should be done by your own efforts, not copied from net, handouts or books.

o You should submit your html file as well as word file containing the code, zip the both files in one single file and upload via your assignment interface.

ENG101 English Comprehension Assignment No. 2 April Spring 2012

Assignment No. 2 (Spring 2012)
English Comprehension (ENG101)
Total Marks: 15
Due Date: 03.05.2012
Objectives:
• To enhance and test students’ knowledge of grammatical terms, and their usage.
• To assess students’ knowledge of writing skills.
• To gauge students’ ability to distinguish between facts and opinion.

Instructions:
1. No assignment will be accepted via e-mail after the due date.
2. Plagiarism will not be tolerated. Plagiarism occurs when a student uses work done by someone else without acknowledging the actual author. It also means copying and pasting the material from handouts and internet source without rephrasing it in his/her own words.
3. Students must solve their assignments in Microsoft Word file.

Q 1 Define the following terms and give an example for each. (5)
i. Hasty generalization
ii. False Cause
Q 2 Read the given statements and determine if these are Facts (F) or Opinions (O).
(5)
1. Many people order pepperoni on their pizzas.
2. Basketball is more interesting to watch than golf.
3. Flowers bloom in the spring and summer months.
4. Exercising outdoors is more fun than exercising indoors.
5. Daisies are the prettiest of all flowers.

Q 3- Fill in the blanks with the help of appropriate choices. (5)
1- The question of purpose of writer is closely related the matter of ………………
Attitude.
tone
style
opinion
2- ———– is the most important skill you will need for success in your studies.
Reading
Writing
Listening
Speaking
3- Authors and their works are …………………
complex
simple
biased
fair
4- The writer can indicate his character through the words he put into his character’s …………..
mind
knowledge
mouth
experience
5- As biasness is unavoidable while writing, writers do try to remain as …………..as possible.
objective
subjective
comprehensive
neutral

MGT503 ASSIGNMENT NO.1 SOLUTION April 2012

Thursday, 12 April 2012

MGT503 ASSIGNMENT NO.1 SOLUTION

 

Q1: What role do you think goals might play in a
company’s planning for any possible pandemic outbreak? List down some goals
that you think might will be important.

Answer:

Goals are very important for every organization and on the
other hand planning is the sub part of goals that achieve the desired outcomes
on the behalf of effective planning. The second name of goal we called those
objectives. Goals guide over all management decision and refer the proper work
method for organization members without goals without planning there is no
direction of work for employees and managers so at the end planning plays very
important and effective role for achieving the optimal desired outcomes.

Q2: What type of plans might companies need for this
situation (for instance short term ,long term or both ) Explain why you think
these plans are important in this situation ?

Answer:

Strategic plans are long term plans that those are developed
by the top management and on the other hand operational plans are short term
plans those are specific and reliable. In this situation the Government and
health officials meet to time for long term and short term planning. Without
planning, the Department and individuals might work at cross-purpose and stop
the organization from moving efficient towards its goals and objectives,
planning also reduce uncertainty by forcing managers to look forwarded. Planning
develop the goals that used in controlling. 

Q3: Being a manager what planning tools would you
recommend to deal with this type of situation effectively?

Answer: 

There are so many types of tools which are used in planning
for instance, environment analysis and environment, scanning, competitor intelligence,
forecasting and benchmark. In this situation I think benchmarking is the best tool
with this type of situation effectively and efficient. The good idea behind the benchmarking is that
we can improve and evaluate the performance and coping the method of leaders in
various fields. As in this situation Asian and particularly South Asian
countries had planned. According to survey 80 corporate nearly every company
had someone in charge of such catastrophic situation and most of them had
clearly mapped out plans that could be implemented immediately in such a crisis
situation. So we can improve performance by analyzing and copying the method.

MGT 111 GDB No.1 Spring April 2012 Idea Solution

MGT 111 GDB No.1  Spring April 2012 Idea Solution

 

The issue of human rights in Pakistan is a hot issue these days wobbling all the sections of the society in general and top echelons of the state in particular. Mr. John, a foreigner, visited his friend Mr. Sheraz here in Pakistan on a personal visit. Both Mr. John and Mr. Sheraz held a comprehensive discussion on the issue of violation of human rights over a cup of tea in the evening. Mr. John asserted that Pakistan has no measures and mechanism that can guarantee the human rights. Mr. Sheraz negated Mr. John by referring to the guarantees that democracy offers to the masses by a precisely defined mechanism.

Question: Discuss and elaborate the stance of Mr. Sheraz on the basis of concrete facts as discussed in the lecturers on the issue under discussion

 

MTH202 Assignment No. 1 Spring April 2012 Idea Solution

MTH202 Assignment No. 1 Spring April 2012 Idea Solution

 

Assignment 1 Of MTH202 (Spring 2012)
Maximum Marks: 15

Due Date: 13th April, 2012

Question 1; Mark: 10
Formulate the argument symbolically and test its validity using the truth table. Also mention the critical row (or rows).

If you finish your home work, then you will sleep early.
If you will sleep early, then you will get up for 8:30am class.

Therefore if you finish your home work, then you will get up for 8:30am class.

Where p = you finish your home work,
q = you will sleep early,
r = you will get up for 8:30am class.

Question 2; Marks: 5
Construct circuit for Boolean expression (Mention output at each step)

(PÙ~ Q) Ú (P Ù Q)

 

CS506 Web Design and Development Assignment No. 01 Spring April 2012

Assignment No. 01
SEMESTER Spring 2012
CS506- Web Design and Development

 

Question:                                                                       
You have to develop a simple application, which will allow administrator to manage student and projects of students.
Application should get choices from the administrator to perform different tasks.
If administrator chooses 1 then get information of student in the way showing in screen shots below and save into Student object.
If administrator chooses 2 then get the roll number and show information of student in this sequence.
If student record doesn’t exist then properly handle it with message.
If administrator chooses 3 then delete the record of student by searching student record with help of student roll number. If student not found then handle if perperly.
If student’s record already exist then administrator should be able to assign projects to a student by selecting option 4. Administrator should follow these steps
It student’s record doesn’t exist then administrator should not be able to assign any project.
If administrator chooses 5 then administrator should be able to search all projects assigned to student by entering roll number of student. If record not found then handle it properly.
If student exist but no projects assigned to student then handle it properly.
If there are multiple projects of one Student then display all projects detail one by one.
If administrator chooses 6 then administrator should be able to delete all projects assigned to a student. If record not found then handle it properly.
If student exist but no projects assigned to student then handle it properly.
If administrator entered invalid choice or hit canceled handle application properly, it should close gracefully.

cs601 data communication assignment no 1, April 2012

Q 1 Suppose you are installing a new network for a company that is growing rapidly. The current design calls for 28 computers, with expansion to 80 in the next six months. Because of the speed at which the network is expected to grow, you want to make sure that adding new devices in the network and troubleshooting will be as easy as possible. So, considering these factors, which topology you will prefer for this type of network? Give proper reasoning to support your answer. (5 Marks)

Q.2 How does the logical topology differ from the physical topology? Can a single physical topology support multiple logical topologies? Answer with proper reasons. (5 Marks)

Q 3 Suppose you have been asked to put together a proposal for a new computer network of a company. You have been asked to specifically list the advantages to networking. Of the following equipment the company owns, which devices can be shared on a network? (5 Marks)

Choose all that apply:

1.    Keyboard
2.    Mouse
3.    Scanner
4.    Monitor
5.    CD-ROM drives
6.    Light pen
7.    Printer

CS610 Computer Networks Assignment No. 01 Spring 11 April 2012 solution required

[B]Q.1. As you know that Tracer route is a network utility program to check the status of specific system on
network, you are required to find the route of Yahoo! Singapore by using tracer route command explain all output
provided by trace route command. [10 Marks]
Q.2. You have been asked to wire a conference room with seven computers for a demonstration after a day. It
needs to be done quickly and with lowest possible expenses. What network topology is best suited to this
situation and why? Justify your answer with solid reasons? [5 Marks]
Follow these steps and instructions for question 1.
First make sure that your system is connected to the internet.
Open a Windows start menu then click Run. Start > Run. Type cmd and click OK. If you have window 7 or
vista, just go to search option in start menu and enter cmd. The command prompt will be opened. See snapshot
1.After that you can apply trace rout command.
Snapshot 1 on Next Page for Opening the CMD:[/B]

Introduction to Programming CS201 Assignment No. 01 Semester: Spring April 2012

Problem Statement: Challan Calculator for Traffic Violation

You are required to write a program for calculating challan for traffic violations. The basic idea is that user will enter the type of violation and number of days passed till date of challan. The challan calculator will calculate the challan based upon the type of violation and number of days.

 

Detailed Description:

 You are required to take input from user for type of traffic violation.
 User will enter ‘1’ if the violation type is “For breaking traffic signal”
 User will enter ‘2’ if the violation type is “For over speeding”
 User will enter ‘3’ if the violation type is “For not wearing seat belt”
 If user enters any other number except 1, 2 or 3, the program will print a message “Enter a valid type of traffic violation”.
 After printing this message program will start again from beginning and prompt user to enter the valid type of traffic violation.
 If user enters ‘1’ the amount of fine is Rs.500, if ‘2’ then Rs.300 and if user enters ‘3’ then fine will be Rs.200.

 Now, program will prompt user to enter number of days passed till challan date.
 If number of days are less than or equal to 10, then the total challan will be same as amount of fine.
 If number of days are more than 10 or less than/equal to 30, then total challan will be double of amount of fine.
 If number of days are more than 30, then 50% of fine will be added in double of amount of fine. i.e. 2 times fine + 1/2 times fine.

 After displaying the total challan to user, the program should ask if the user wants to calculate another challan. The user can enter ‘y’ or ‘n’ as choices for yes or no. Program will handle user’s choice in both upper and lower cases.

 If the user enters ‘y’ or ‘Y’, then program should clear the screen and start the whole process again or terminate the program otherwise.

MTH 101 Calculus And Analytical Geometry Assignment No.1 Spring April 10 2012

MTH 101 Calculus And Analytical Geometry Assignment No.1 Spring April 10 2012

Assignment No. 1
MTH 101 (Spring 2012)

Maximum Marks: 20
Due Date: 18th April. 2012

DON’T MISS THESE Important instructions:

 To solve this assignment, you should have good command over first
08 lectures.
 Upload assignments properly through LMS, (No Assignment will be accepted through email).
 Write your ID 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.
 This is not a group assignment, it is an individual assignment, so be careful and avoid copying others’ work. If any 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 assignment is found to be copied or letting others to copy.

Question # 01: 10