Monday, 21 November 2011

CS304 Assignment 2 Idea Solution


#include<iostream.h>
#include<conio.h>

class Users{ // User class

// Userclass attributes
// Access specifier is by default private 
int ID; 
char Name;
string Address;

public:// public access specifier

// User class functions/ operations 
void viewcard();
void searchcard();
};// end of User class
// ************************************************************
// ************************************************************

class Administrator{ // Administrator class
//Attributes of Administrator class 
int ID; 
char Name;
string Address;
password password;

public:// public access specifier

// Administrator class functions/operations 
void addcard();
bool deletecard();
void Viewcard();
void searchcard();
void sendcard();
};// end of Administrator class

// ************************************************************
// ************************************************************

class Members{ // Members class
//Attributes of Members
// Access specifier is by default private
int MemberID; 
char Name;
string Address;
// Member class functions/operations 

void Viewcard();
void searchcard();
void sendcard();

};// end of Member class

// ************************************************************
// ************************************************************

class Memberlist{ // Memberlist class

//Memberlist class attributes
// Access specifier is by default private
Char membername;
Password password;
Char status;
Char country;

public: // public access specifier

// memberlist class functions/ operations 
void verifymembers();
void addmembers();
void getrecord();
void showmemberlist();
};// end of memberlist class

// ************************************************************
// ************************************************************

class card{ // card class

//card class attributes
// Access specifier is by default private
Int cardID; 
Char cardname;
Int BGid;
Int MUid;
Date date;

public: // public access specifier

// memberlist class functions/ operations 
void sendcard();

};// end of card class

// ************************************************************
// ************************************************************
class cardlist{ // cardlist class

//cardlist class attributes
// Access specifier is by default private
Int cardID;
Char cardname;


public: // public access specifier

// memberlist class functions/ operations 
Void delete();
void addcard();
void getcard();

};// end of cardlist class

// ************************************************************
// ************************************************************
class Categorycatolog{ // Categorycatolog class

// class attributes
// Access specifier is by default private
Int catID;
Char catname;

public: // public access specifier

// memberlist class functions/ operations 

void addcatagory();
void deletecatagory();
void addcard();
void deletecard();
void showcard();
};// end of catagorycatolog class

// ************************************************************
// ************************************************************

JUST IDEA SOLUTION


CS302 2nd Assignment Solution

CS201 Assignment Idea Solution

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

Due Date:21/11/2011

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 submitted assignment does not open or file is corrupt.
Assignment is copied(partial or full) from any source (websites, forums, students, etc)


Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks. For example, if you submit code in .doc (Word document) or .txt files, no reward will be given in any case.



Objectives:

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


Functions
Arrays Manipulation
Pointers with Arrays


Guidelines:

Code should be properly indented and well commented.
Follow C/C++ rules while writing variable names, function names etc
Use only dev-C++ for this assignment.
Use appropriate C/C++ structure i.e. if-else; switch statement etc to get inputs from user where required (Marks will be deducted if inappropriate structure will be used).

Problem Statement:
Write a program which calculates the increase or decrease in the annual income of a company for each year.

Detailed Description:

The program should start by asking the user to enter the company’s annual income for each year starting from year 2000 till 2009. Income must be taken in million. Implementation of following user defined functions are mandatory for this program:


A function GetAnnualIncome(), which will take and store the income for each year in an input array. The input entered by user should be integer only. The input array should be passed as argument to the function. While taking the input, if annual income entered by the user is a negative value, the program should prompt the user to enter the income again for that year.


A function CalcIncChange(), which will take two arrays as its arguments. This function will calculate the increase or decrease in the annual income of the company for each year by subtracting the current year income from the income of previous year. For example, to calculate income increase or decrease for year 2001, the following formula can be used:


Income increase or decrease for year 2001 = Income of Year 2001 – Income of Year 2000


Income of year 1999 = 1000 million
The increase or decrease in the income for each year will be stored in another array. Calculated increase or decrease in the income for each year should also be displayed on the screen.


A function CalcChangePercent(), will calculate the percentage of income increase or decrease for each year and then will display this calculated percentage on the screen. The function will take array as its argument and calculates the percentage for each year using the formula given below:


Income increase or decrease in percentage for year 2001 = (Income increase or decrease for year 2001 / Income of Year 2000) * 100


After calculating the percentage for each year, it should be displayed on the screen as well.


A function IncDecYears(), will be used to display the years in which the company income increased and years in which company income decreased.
A function MaxIncDecYears(), will take a pointer to an array and by using pointer arithmetic, displays only those two years in which the company faced maximum increase and maximum decrease in its income.

Sample Output:

The sample output of program is given below:

Saturday, 19 November 2011

ENG101 Assignment No. 2 Solution


Please change the wording as I have already uploaded it.
Q # 1 SOLUTION
The setting is clarified as a winter evening in a rural environment. The speaker desires to watch snow fall quietly in some woods. While these woods belong to someone, that person is not present and so will not protest if the speaker trespasses.
Q # 2 SOLUTION
As the story opens, Della is counting the money that she has saved to buy her husband his Christmas present, and she is reduced to tears finding the amount of money she has painstakingly saved for months. She is dismayed to find she has less than two dollars, hardly enough to buy anything at all. After a good long cry, Della determines to find a way to buy Jim the present he deserves. Jim appears in this story as the prince of her dreams and thoughts demonstrating her affection towards him.
Q#3 SOLUTION
a)1
b)1
c)4
d)3
e)2

Friday, 18 November 2011

ISL201 GDB 1 SOLUTION


Social structure is a term used in the social sciences to refer to patterned social arrangements which form the society as a whole, and which determine, to some varying degree, the actions of the individuals socialized into that structure. The meaning of “social structure” differs between various fields of sociology. On the macro scale, it can refer to the system of socioeconomic stratification (e.g., the class structure), social institutions, or, other patterned relations between large social groups. On the meso scale, it can refer to the structure of social network ties between individuals or organizations. On the micro scale, it can refer to the way norms shape the behavior of actors within the social system.
These meanings are not always kept separate. For example, recent scholarship by John Levi Martin has theorized that certain macro-scale structures are the emergent properties of micro-scale cultural institutions (this meaning of “structure” resembles that used by anthropologist Claude Lévi-Strauss).
The English word ‘society’ can be stretched or narrowed to cover almost any form of association of persons possessing any degree of common interests, values, or goals. ‘Society’ in the nineteenth century meant the upper classes; one might now refer to ‘international academic society’ or ‘European society’, though these uses might be disputed. The primary and most normal sense refers to a society defined by the boundaries of the state, even though this usage is odd and potentially misleading in the many cases where there is more than one sizeable ethnic or cultural group in a society, like Canada and South Africa.
Philosophy Dictionary: society
A group of persons unified by a distinctive and systematic set of normative relations, whereby actions of one are perceived as meriting characteristic responses by others. To be part of the same society is to be subject to these norms of interaction.
A society is a group of humans or other organisms of a single species that is delineated by the bounds of cultural identity, social solidarity, functional interdependence, or eusociality. Human societies are characterized by patterns of relationships between individuals that share a distinctive culture or institutions. Like other groups, a society allows its individual members to achieve individual needs or wishes that they could not fulfill separately by themselves, without the existence of the social group. Society, however, may be unique in that it is ontologically independent of, and utterly irreducible to, the qualities of its constituent individuals. As a reality sui generis, or “of its own kind”, it is emergently composed of social facts that often hinder rather than help the pursuits of the subjects that form its physical and psychological underpinnings.
More broadly, a society is an economic, social or industrial infrastructure, made up of a varied multitude of individuals. Members of a society may be from different ethnic groups. A society may be a particular ethnic group, such as the Saxons; a nation state, such as Bhutan; a broader cultural group, such as a Western society; or even a social organism such as an ant colony.
The word society may also refer to an organized voluntary association of people for religious, benevolent, cultural, scientific, political, patriotic, or other purposes.

CS610 2nd Quiz All Solved with some Reference (18-Nov-11)




 Question # 13 of 15 ( Start time: 01:07:43 AM ) ATM header is about the________________of the cell.
Select correct option:
 15%
10% page 66
 20%
5%
Question # 6 of 15 ( Start time: 01 01 20 AM ) Jitter is significance for ______________
Select correct option:
Voice
 Video
 Data
Al of above page 66
Question #15 of 15 ( Start time: 01 09:10 AM ) How many methods exist for building routing table?
Select correct option
1
2 page
 3 4
The process of forwarding the packets of information is called routing
Question # 7 of 15 (Start time 01:02:12 AM )
The routing table contains information about the _____________ immediately around it
Select correct option:
Topology of the network
Destination page 58
Both of the above
None of the above
Question # 1 of 15 ( Start time: 12:56:42 AM Asynchronous Transfer Mode uses the concept of ______________
Select correct option:
 Connection-less networking
Connection-oriented networking page 66

Question # 14 of 15 (Start time: 01 08:27 AM)
Which of the following statement is true regarding ATM?
Select correct option:
It is a single technology for voice, video and data
It has low jitter and high capacity
 It uses fixed size.small cels. 48 octet's data
All of the above page 65

Question tt 12 of 15 ( Start time 01 06 17 AM )
A ____ can forward or block messages based on the information in the message itself
 Select correct option
 Message digest
 Proxy firewall
Packet filter firewall not found in handouts
Private key
You can use an IP packet filter firewall to create a set of rules that either discards or accepts traffic over a network connection.(Source to confirm http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/ipha5/packetfilterfirewall.htm)
Question # 3 of 15 ( Start time: 12:58:44 AM ) Transmission media are usually categorized as
Select correct option:
Guided or unguided
 Fixed or unfixed
 Determinate or indeterminate
 Metallic or nonmetallic
Question # 2 of 15 ( Start time: 12:58:01 AM ) Which of the following is not a guided medium?
Select correct option:
 Twisted-pair cable
 Fiber-optic cable
Atmosphere
Coaxial Cable
Question tt 9 of 15 ( Start time: 01:03:53 AM ) Which multiplexing technique transmits digital signals?
Select correct option:
 WDM
 FDM
TDM
 None of the above
Question # 4 of 15 ( Start time: 12:59:08 AM ) All destinations on same switch have same _________
Select correct option:
 Router
 Information
Next Hop page 58
 None of the above
Question # 5 of 15 ( Start time: 01:00:05 AM ) Which of the following statement is true regarding Distance-Vector routing
Select correct option:
 It is very simple to implement.
Packet switch updates its own routing table first. Page 64
 It is used in RIP.
All of the above
Question # 11 of 15 ( Start time: 01:05:59 AM ) An exterior switch is one with which _______________
Select correct option:
Computers are attached page 59
 No computer is attached
 hubs are attached externally None of the above
Question # 10 of 15 ( Start time: 01:05:06 AM )
Frame relay is _______________________
Select correct option:
Connection oriented service page 64
Connectionless service It is typically ranges from 5Mbps to 1000Mbps. None of the above
Question # 8 of 15 ( Start time: 01:03:18 AM ) An interior switch is one with which ___________
Select correct option:
 Computers are attached
No computer is attached page 59
 Computers are attached internally None of the above
Question # 1 of 15 ( Start time: 01:35:17 PM ) Total Marks: 1
Which of the following is not a benefit of source independence?
Select correct option:
 It allows fast and efficient routing.
Packet switch do not need to have complete information about all destinations
 Network functions even if topology changes
 None of the above
Question # 2 of 15 ( Start time: 01:36:12 PM ) Total Marks: 1
Which of the following statement regarding ATM is true?
Select correct option:
 Connections in ATM are called virtual channels
 The VC is identified by a 24-bit value formed from the VPI
Both (a) and (b)
 None of the above
Question # 3 of 15 ( Start time: 01:36:57 PM ) Total Marks: 1
ATM header is about the ---------- of the cell.
Select correct option:
 15%
10%
 20%
 5%
Question # 4 of 15 ( Start time: 01:37:06 PM ) Total Marks: 1
How many methods exist for computing routing table?
Select correct option:
 5
 4
 3
2
Question # 5 of 15 ( Start time: 01:37:38 PM ) Total Marks: 1
Which of the following statement is true regarding Distance-vector routing?
Select correct option:
 It is very simple to implement.
Packet switch updates its own routing table first.
 It is used in RIP.
 All of the above
Question # 6 of 15 ( Start time: 01:37:53 PM ) Total Marks: 1
Which one of the following is a property of static routing?
Select correct option:
 It is inflexible
 It is done at boot time
 It has low network overload
All of the above
Question # 7 of 15 ( Start time: 01:38:17 PM ) Total Marks: 1
Asynchronous Transfer Mode uses the concept of --------------------.
Select correct option:
 Connection-less networking
Connection-oriented networking
Question # 8 of 15 ( Start time: 01:38:28 PM ) Total Marks: 1
Which multiplexing technique shifts each signal to a different carrier frequency?
Select correct option:
 TDM
FDM
 Both a and b
 None of the above
Question # 9 of 15 ( Start time: 01:39:39 PM ) Total Marks: 1
An interior switch is one with which ………………….
Select correct option:
 Computers are attached
No computer is attached
 Computers are attached internally
 None of the above
Question # 10 of 15 ( Start time: 01:40:01 PM ) Total Marks: 1
LAN networks can not be extended to very larg networks because of the limmitations of...........
 Select correct option:
 area
distance
 routers
 technology
Question # 11 of 15 ( Start time: 01:41:12 PM ) Total Marks: 1
Which of the following statement is wrong regarding ATM?
Select correct option:
 It is a single technology for voice, video and data
 It has low jitter and high capacity.
 It uses fixed size, small cells, 48 octet’s data
None of the above
Question # 12 of 15 ( Start time: 01:41:53 PM ) Total Marks: 1
Which one of the following is the responsibility of Djikstra’ algorithm?
Select correct option:
To compute the shortest path between two nodes
 To extract next hop information from path information
 To insert next hop information into routing table
 All of the above
Question # 13 of 15 ( Start time: 01:42:38 PM ) Total Marks: 1
Which one of the following is a property of dynamic routing?
Select correct option:
 It is inflexible
 It has low network overload
It can work around network failure
 All of the above
Question # 14 of 15 ( Start time: 01:43:12 PM ) Total Marks: 1
Which of the following statement is true regarding ATM?
Select correct option:
 ATM is a single technology that is designed to meet the goals of both LANs and WANs.
 ATM uses the concept of connection-oriented networking.
Both (a) and (b)
 None of the above
Question # 15 of 15 ( Start time: 01:43:47 PM ) Total Marks: 1
1. Source independence is a phenomena in which next hop to destination does not depend on the …………………
Select correct option:
Source of packet
 Destination of packet
 No of hops
 Source of protocol 

CS402 2nd Assignment Solution