Friday, December 31, 2010

CS201 Assignment No. 3

Assignment No. 3

Semester: Fall 2010

CS201: Introduction to Programming            Total Marks: 20

 

Due Date: 06 Jan, 2011

 

Instructions:

Please read the following instructions carefully before submitting your assignment:

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

 

         The assignment is submitted after due date.

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

 

All types of plagiarism are strictly prohibited.

 

Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted. If you will submit code any other file format like .doc or .txt etc. you will get zero marks.

 

Objective

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

 

         Functions of C/C++

         Classes in C/C++

         Creating and manipulating objects.

 

Guidelines

         Code should be properly aligned and well commented.

         Follow C/C++ rules while writing variables names, function names etc.

         Use only Dev-C++ IDE for this assignment.

Assignment    

 

Problem Statement: Calculate salary

 

You are required to write a program which will calculate the salary of an employee according to his/her grade assigned by the employer. You must declare a class named CalSalary whose private data members will be employee ID, employee name and employee grade. Also write a constructor, setter and getter functions for all private data members and a function that will calculate the salary.

 

 

Detailed Description:

•           Employee ID and grade should be of type integer. Employee name should be of type string.

•           Constructor should initialize employee ID and grade with value zero and employee name with value NULL.

•           For assigning or extracting values from private data members, you must use getter and setter functions.

•           Declare a public member function named calculate which will calculate the net salary of the employee according to his/her grade.

•           Formula for calculating actual salary is (Basic Salary) + 45% of basic salary.

•           If the grade of employee is 17, then the basic salary is 15,000.

•           If the grade is 18, then the basic salary is 20,000 and if grade is 19 then the basic salary is 25,000.

 

Sample Output 1

 

Please enter employee ID : 001

Please enter employee name : Mohammad Ali

Please enter employee grade : 17

 

The net salary of Mohammad Ali is Rs.21750

  

 

Sample Output 2

 

Please enter employee ID : 2

Please enter employee name : Aslam Khan

Please enter employee grade : 19

 

The net salary of Aslam Khan is Rs.36250

 

 

Note: you have to use same Class and Function name as mentioned in the assignment details. If we find any deviation, marks will be deducted.

 

Deadline:

Your Assignment solution must be submitted on or before January 06, 2011.

STA630 Online Quiz No. 3 Announcement

Quiz 3 Dated: Dec 31, 10

On-Line Quiz (No.03) Announcement
Quiz will cover video lecture no. 1 to 28

Schedule
Opening Date and Time
January,3, 2011 At 12:01 AM (Mid-Night)
Closing Date and Time
January5, 2011 At 11:59 PM (Mid-Night)

24 hours extra time is not available

Mgt603 Online Quiz No. 2 Announcement

Quiz # 02 (Announcement) Dated: Dec 31, 10

On-Line Quiz (No.02) Announcement

Quiz will cover video lecture no. 01 to 27

Schedule

Opening Date and Time
Jan 04, 2011 At 12:01 AM (Mid-Night)

Closing Date and Time
Jan 06, 2011 At 11:59 PM (Mid-Night)


24 hours extra time is not available

Mgt101 Assignment No. 2

Semester "Fall 2010"
"FINANCIAL ACCOUNTING – 1 (MGT101)"
Assignment No. 02 Marks: 20

QUESTION – 01
The following are the information available from the Trial Balance of Mr. Ali & Sons for the
year ended on 31st December 2010.
Adjustments:
􀂾 Write off Rs. 5,000 bad debts from accounts receivable.
􀂾 Maintain provision for doubtful debts at 5%.
Required:
1. Calculate new provision.
2. Calculate the amount of Provision for doubtful debts to be appeared in Profit and
Loss Account.
3. Calculate the amount of Sundry debtors to be shown in Balance Sheet.

QUESTION – 02
The financial year of Mr. Ali & Sons is closed on June 30, 2010. Data regarding Mr. Ali &
Sons is given below:
Required:
Prepare Debtors control account for the month of June, 2010.
Particulars Debit
Rs.
Credit
Rs.
Accounts receivable
Bad debts
Provision for doubtful debts
205,000
8,000
6,000
Particulars Rs.
Opening balance of sundry debtors 25,000
Cash sales 100,000
Credit sales 50,000
Discount allowed 2,000
Discount received 6,000
Receipts from debtors 35,000
Bad debts written off 10,000
Sales returns (from credit sales) 5,000

Important Tips
1. This Assignment can be best attempted from the knowledge acquired after
watching video lecture no. 1 to lecture no. 27 and reading handouts as well as
recommended/reference books).
2. Video lectures can be downloaded for free from Online VU Lectures

Schedule
Opening Date and Time December 31, 2010 At 12:01 A.M. (Mid-Night)
Due Date and Time January 05, 2011 At 11:59 P.M. (Mid-Night)
Note: Only in the case of Assignment, 24 Hrs extra / grace period after the above mentioned
due date is usually available to overcome uploading difficulties which may be faced by the
students on last date. This extra time should only be used to meet the emergencies and above
mentioned due dates should always be treated as final to avoid any inconvenience.

Thursday, December 30, 2010

Eng201 Assignment No. 3

Some hints by some one


Q1 (Answer)

Feasibility report including these headings, you can explain by yourself just focus on headings.

1- Title (where you show subject, and your name)

2- contents

3- Introduction

(now start the report)

date

your name

4- Criteria

5- Method of obtaining facts

4- Overview of alternatives

5- Evaluation

6- Conclusions

7- Recommendations

(you just make a story after read the Q1, and write here)

Q-2

To answer the reader typical questions about empirical research report, writer use a substructure that has the following elements.

1- Introduction (Why is your research important to us)

2- Objectives of research(What were you trying to find out)

3- Methods Results(Was your research method sound

4- Discussion(What results did your research produce)

5- Conclusions(How do you interpet your research)

6- Recommendation(What do you think we should do)

SOC101 Assignment No. 2 Announcement

Semester "Fall 2010"
"Introduction to Sociology (SOC101)"
Assignment No. 02 Marks: 20

Schedule
Opening Date and Time December 30, 2010 At 12:01 A.M. (Mid-Night)
Due Date and Time January 10, 2011 At 11:59 P.M. (Mid-Night)

Institution of family

Purpose of Assignment:
The purpose of giving you this assignment:
• To present the problem to be researched and its importance.
• To enhance your practical learning of the subject.
• To suggest that how the data will be gathered, treated and interpreted.
• You are required to choose a Family of your choice to complete your Assignment.

1. Select a family (joint or extended)

Instructions:
Things to consider when choosing a family to prepare your report:
• Mention the name of family you have visited.
• Choose a family which is in your access.
• Analyze your information keeping in mind its relevance with sociology and use sociological terms while interpreting the data.
• Avoid selecting any family that you cannot easily gather information on.
• In general, you must discuss your assignment related problems through email at SOC101@vu.edu.pk.
2. Conduct basic factual research on the family.

Focus on the following while conducting the research:
You should conduct qualitative research (collect data) on the following
• Type of family (brief explanation)
• Interaction patterns of family
• Marriage practices followed by specific family
• Primary and secondary ***** affiliations
• Ways of communication
• Cultural patterns
• Gender role socialization
• Social mobility of particular family

You can gather such information in many ways:
Contact the family directly or contact some reliable person to get information from family members. (Note: Be aware that family personnel are often busy and might not have time to answer all your questions. Be respectful of their time.)

GUIDELINES FOR REPORT WRITING
Write a brief report (that summarizes your experience and your assessment of the information.

The final documentation of report must consist of following chapters;

Title Page
Table of contents
Abstract: write a brief summary of your report writing into 200-250 words.
1) Introduction
In this part, a brief and comprehensive introduction to the topic under study is
given. It includes the background of your study.
2) General findings of the study
3) Analysis of results
4) conclusions
5) Appendices/References

Marking details:
Introduction of the family = 03 marks
General findings of the study = 05 marks
Analysis & Interpretation = 05 marks
Conclusion = 05 marks
Referencing =02 marks

Important Tips
This Assignment can be best attempted from the knowledge acquired after watching video lecture no. 01 to lecture no 30 and reading handouts as well as recommended text books.

Schedule
Opening Date and Time December 30, 2010 At 12:01 A.M. (Mid-Night)
Due Date and Time January 10, 2011 At 11:59 P.M. (Mid-Night)

Note: Only in the case of Assignment, 24 Hrs extra / grace period after the above mentioned due date is usually available to overcome uploading difficulties which may be faced by the students on last date. This extra time
should only be used to meet the emergencies and above mentioned due dates should always be treated as final to avoid any inconvenience.

Important Instructions:
Please read the following instructions carefully before attempting the assignment solution.

Deadline:
• Make sure that you upload the solution file before the due date. No assignment will be accepted through e-mail once the solution has been uploaded by the instructor.

Formatting guidelines:
• Use the font style "Times New Roman" and font size "12".
• It is advised to compose your document in MS-Word 2003.
• Use black and blue font colors only.
• Assignment must not be more than 10 pages.

Solution guidelines:
• Use APA style for referencing and citation. For guidance search "APA reference style" in Google and read various website containing information for better understanding or visit http://linguistics.byu.edu/faculty/henr ... APA01.html
• Every student will work individually and has to write in the form of an analytical assignment.
• Give the answer according to question, there will be negative marking for irrelevant material.
• For acquiring the relevant knowledge don't rely only on handouts but listen the audio lectures and use other reference books also.
• Remember don't try to copy from handouts or website; otherwise you will get absolutely 0 marks

Rules for Marking
Please note that your assignment will not be graded or graded as Zero (0) if:
• It has been submitted after due date
• The file you uploaded does not open or is corrupt
• It is in any format other than .doc (MS. Word)
• It is cheated or copied from other students, internet or books.

CS610 - Computer Network Assignment No. 3 Solution

Assignment Statements:

a). Summarize the difference between classful IP address and classless IP address in tabular format.
(Your answer should not increase more than one page)
(10 marks)

b.) Show your IP address by using DOS command "ipconfig" and answer the following. (2 x 5 marks)
(i) Show your IP address and subnet mask
(ii) Convert the IP address and Subnet mask into binary representation.
(iii) What is the class of your IP address in classful scheme and why?
(iv) Find your host number and network number in classful and classless scheme, also gives the reason to your answers.
(v) Given the address 23.56.7.91, find the beginning address i.e. network address
.................
Classful Vs Classless Address


Image
Classful addressing:In the classful addressing system all the IP addresses that are available are divided into the five classes A,B,C,D and E, in which class A,B and C address are frequently used because class D is for Multicast and is rarely used and class E is reserved and is not currently used.Each of the IP address belongs to a particular class that's why they are classful addresses.Earlier this addressing system did not have any name,but when classless addressing system came into existence then it is named as Classful addressing system.The main disadvantage of classful addressing is that it limited the flexibility and number of addresses that can be assigned to any device.One of the major disadvantage of classful addressing is that it does not send subnet information but it will send the complete network address. The router will supply its own subnet mask based on its locally configured subnets. As long as you have the same subnet mask and the network is contiguous, you can use subnets of a classful network address.
Image
Classless Addressing:Classless addressing system is also known as CIDR(Classless Inter-Domain Routing).Classless addressing is a way to allocate and specify the Internet addresses used in inter-domain routing more flexibly than with the original system of Internet Protocol (IP) address classes.What happened in classful addressing is that if any company needs more than 254 host machines but far fewer than the 65,533 host addresses then the only option for the company is to take the class B address.Now suppose company needs only 1000 IP addresses for its host computers then in this (65533-1000=64533) IP addresses get wasted.For this reason, the Internet was, until the arrival of CIDR, running out of address space much more quickly than necessary. CIDR effectively solved the problem by providing a new and more flexible way to specify network addresses in routers.A CIDR network address looks like this:

192.30.250.00/15

The "192.30.250.00" is the network address itself and the "15" says that the first 15 bits are the network part of the address, leaving the last 17 bits for specific host addresses.One more advantage of classless addressing is that classless protocol sends subnet information. This allows you to create discontiguous networks with any given classful network address.
...................
(i) Show your IP address and subnet mask

To use the ipconfig utility, go to the Start button. Select Run.
Image
Enter command into the Open box and click OK. This will open the MS-DOS (Command) Prompt window.
C:\WINDOWS\Desktop>
Enter ipconfig and press Enter. You should see something similar to the output below. 

Example: Dialup Connection (Windows XP)
C:\WINDOWS\Desktop>ipconfig 

Windows IP Configuration 

Ethernet adapter Local Area Connection: 

Connection-specific DNS Suffix . : expedient.net 
IP Address. . . . . . . . . . . . : 216.151.124.X 
Subnet Mask . . . . . . . . . . . : 255.255.255.0 
Default Gateway . . . . . . . . . : 216.151.124.1 

PPP adapter Dialup Stargate: 

Connection-specific DNS Suffix . : 
IP Address. . . . . . . . . . . . : 209.166.149.121 
Subnet Mask . . . . . . . . . . . : 255.255.255.255 
Default Gateway . . . . . . . . . : 209.166.149.121
..............

Given the address 23.56.7.91, find the beginning address i.e. network address

Solution

The default mask is 255.0.0.0, which means that only the first byte is preserved and the other 3 bytes are set to 0s. The network address is 23.0.0.0.

Fin622 Online Quiz No. 3 Announcement

Quiz No.3
Dated: Dec 30, 10

On-Line Quiz (No.03) Announcement Quiz will cover video lecture no. 01 to 28

Schedule
Opening Date and Time:     January 04, 2011 At 12:01 AM (Mid-Night)
Closing Date and Time:       January 06, 2011 At 11:59 PM (Mid-Night)

The Quiz will remain open for "72 Hours" 24 hours extra time is not available

Fin621 Online Quiz No. 3 Announcement

Quiz # 3

Dated: Dec 30, 10

On-Line Quiz (No.03) Announcement Quiz will cover video lecture no. 01 to 28

Schedule
Opening Date and Time:       January 04, 2011 At 12:01 AM (Mid-Night)
Closing Date and Time:         January 06, 2011 At 11:59 PM (Mid-Night)

The Quiz will remain open for "72 Hours" 24 hours extra time is not available