Wednesday, 7 May 2014

Armstrong Number Check

Armstrong Number Check



Armstrong Number is a three digit number such that the sum of the cubes of the digits of the number is equal to the number itself,
i.e, xyz = x3+y3+z3
Eg, 153 = 13+53+33

Given below is a program for a Armstrong number test using C++:
You can however write the code in a different way. This is just a sample.

Open C++

Write the code:
#include <stdio.h>

#include <conio.h>
void main ()
{
int x,m,sum,temp;
sum=0;
printf ("Enter number\n");
scanf ("%d",&x);
temp=x;
while (x>1)
{m=x%10;
x=x/10;
sum=sum+(m*m*m);}
if (sum==temp)
{printf ("\n%d is an Armstrong Number",temp);}
else {printf ("\n%d is not an Armstrong Number",temp);}
}

Run the code.
It works.
To save, use extension .cpp
Thanks!
ConnectU Edu.



TO KNOW MORE OR TO CLARIFY YOUR DOUBTS ON THE TOPIC, PUT A COMMENT.REMARKS, SUGGESTIONS AND QUERIES ARE WELCOME. JUST PUT A COMMENT.

Click here to download the Armstrong Number Checker Program for FREE

Monday, 30 December 2013

Check Prime Number or Not With Just 1 Click

Check Prime Number or Not With Just 1 Click

You're given a number. Will you be able to say if the number is a prime number or not?

Now, check if the number is prime or not with just one click.
No extra efforts wasted.
Given below is a program for a prime number test using C++:
You can however write the code in a different way. This is just a sample.

Open C++

Write the code:

#include <stdio.h>

#include <conio.h>
void main ()
{
int half,x,state,temp;
printf ("Enter the number\n");
scanf ("%d",&x);
half=x/2;
state=1;
temp=2;
while (state!=0&&temp<=half)
{if (x%temp==0)
{state=0;}
else {++temp;}
}
if (state==0)
{printf ("\n%d is not prime\n",x);}
else {printf ("\n%d is prime\n",x);}
}

Run the code.
It works.
To save, use extension .cpp
Thanks!
ConnectU Edu.

TO KNOW MORE OR TO CLARIFY YOUR DOUBTS ON THE TOPIC, PUT A COMMENT.REMARKS, SUGGESTIONS AND QUERIES ARE WELCOME. JUST PUT A COMMENT.
Click here to download the Prime Number Checker Program for FREE

Sunday, 29 December 2013

How To Make Your Own Multiplication Table

How To Make Your Own Multiplication Table


You need not memorize all the multiplication tables now. Just one click and the desired table appears on screen.
Learn how to make your own multiplication table using C++ language.

Given below is a code that runs the multiplication table program.
You can however, make desired changes in your program.

Open C++
Write the code:

#include <stdio.h>
#include <conio.h>
void main ()
{
int x,y;
y=1;
printf ("Enter the number whose table you want\n");
scanf ("%d",&x);
for (int i=y; i<=10; ++i)
{printf ("%d X %d = %d\n",x,i,x*i);}
}

Run the code.
It works.
To save, use extension .cpp
Thanks!

ConnectU Edu.


TO KNOW MORE OR TO CLARIFY YOUR DOUBTS ON THE TOPIC, PUT A COMMENT.
REMARKS, SUGGESTIONS AND QUERIES ARE WELCOME. JUST PUT A COMMENT.

Click here to download the Multiplication Table Program for FREE

Thursday, 26 December 2013

Education

Education

Aims, Objectives and Importance


Education has a great social importance especially in the modern, complex industrialized societies. Philosophers of all periods, beginning with ancient stages, devoted to it a great deal of attention. Accordingly, various theories regarding its nature and objective have come into being. Let us now examine some of the significant functions of education.

1. To complete the socialization process

The main social objective of education is to complete the socialization process. The family gets the child, but the modern family tends to leave much undone in the socialization process. The school and other institutions have come into being in place of family to complete the socialization process.

"Now, the people fell that it is "the school's business to train the whole child even to the extent of teaching him honesty, fair play, consideration for others and a sense of right and wrong". The school devotes much, of its time and energy to the matter such as co-operation, good citizenship, doing one's duty and upholding the law. Directly through textbooks and indirectly through celebration of programmes patriotic sentiments are intimates and instilled. The nation's past is glorified, its legendary heroes respected, and its military ventures justified.

(2) To transmit the central heritage

All societies maintain themselves, by exploitation of a culture. Culture here refers to a set of beliefs and skills, art, literature, philosophy, religion, music etc. that are not carried through the mechanism of heredity. They must be learned. This social heritage (culture) must be transmitted through social organizations. Education has this function of cultural transmission in all societies. It is only at the under leaves of the school that any serious attempt has been, or now is, made to deal with this area.

(3) For the formation of Social personality

Individual must have personalities shaped or fashioned in ways that fit into the culture. Education everywhere has the function of the formation of social personalities. Education helps in transmitting culture through proper molding of social personalities. In this way, it contributes to the integration, to survive and 'to reproduce themselves.

(4) Reformation of Attitudes

Education aims at the' reformation of attitudes wrongly developed by children already. For various reasons the child may have absorbed a host of attitudes, beliefs and disbeliefs, loyalties and prejudices, jealously and hatred etc. these are to be reformed. It is the function of education to see that unfounded beliefs, illogical prejudices and unreasoned loyalties are removed from the child's mind, though the school has its own limitations in this regard, it is expected to continue its efforts in reforming the attitudes of the child.

(5) Education for occupational placement

An instrument of livelihood. Education has a practical and also it should help the adolescent for earning his livelihood. Education has come to be today as nothing more than an instrument of livelihood. It should enable the student to take out his livelihood. Education must prepare the student for future occupational positions; the youth should be enabled to play a productive role in society. Accordingly, great emphasis has been placed on vocational training.

(6) Conferring of Status:

Conferring of status is one of the most important functions of education. The amount of education one has, is correlated with his class position. Education is related to one's position in the stratification structure in two ways. (1) An evaluation of one's status is partially decided by what kind of education one has received and (2) Many of the other important criteria of class position such as occupation, income and style of life are partially the result of the type and amount of education one has had. Men who finish college, for example, earn two and a half times as much as those who have a grammar school education.

(7) Education encourages the spirit of competition

The school instills co-operative values through civic and patriotic exhortation or advice. Yet the school's main emphasis is upon personal competition. For each subject studied the child is compared with the companies by percentage of marks or rankings. The teacher admires and praises those who d- well and frowns upon those who fail to do well. The school's ranking system serves to prepare for a later ranking system. Many of those who are emotionally disappointed by low ranking in the school are thereby prepared to accept limited achievement in the larger world outside the school.

Other Functions of Education

Peter Worsley has spoken of a few more functions of education. Some of them may be noted, Education Trains in skills that are required by the Economy.

The relation between the economy and education can be an exact one. For example the number and productive capacity of engineering firms are limited by the number of engineers produced by education. In planned economy, normally it is planned years in advance to produce a definite number of doctors, engineers, teachers, technicians, scientists etc. to meet the social and economic needs of the society.

Fosters Participant Democracy:

Education fosters participant democracy. Participant democracy in any large and complex society depends on literacy. Literacy allows full participation of the people in democratic processes and effective voting. Literacy is a product of education. Educational system has this economic as well as political significance.

Education Imparts values:

The curriculum of the school, its extracurricular activities and the informal relationships amongst students and teacher communicate social skills and values. Through various activities a school imparts values such as co-operation or atmospheric, audience, fair play. Thin is also done through curriculum that Is through lessons in history literature etc.

Education acts as an integrative force:

Education acts as Integrative force in society by communicating value that unite different sections of society. The family may fail to provide the child the essential knowledge of the social skills and value of the wider society. The school or the educational institutions can help the child to learn new skills and learn to interact with people of different social backgrounds.

Values and orientations, which are specific to certain occupations, are also provided by Education:

For example, the medical students are socialized and educated in a particular way in medical college. This may help them to become proper medical practitioners, other values and orientations relevant to the functioning of industrial society are also provided by education.


Source: https://www.preservearticles.com/sociology/what-is-the-importance-of-education-to-our-society/2570
Author: Bharat Kumar