Thursday, February 26, 2009

Calculating Sum in c language

#include
#include
void main(void)
{
int value1 ,value2,sum;
printf("enter first value");
scanf("%d",&value1);
printf("enter second value");
scanf("%d",&value2);
sum = value1+value2;
printf("sum is :",sum);
}
note:
%d = format specifier for integer;
scanf is used to take input from user;

CLOUD COMPUTING

Cloud computing is a computing paradigm in which tasks are assigned to a combination of connections, software and services accessed over a network. This network of servers and connections is collectively known as "the cloud." Computing at the scale of the cloud allows users to access supercomputer-level power. Using a thin client or other access point, like an iPhone, BlackBerry or laptop, users can reach into the cloud for resources as they need them. For this reason, cloud computing has also been described as "on-demand computing."

This vast processing power is made possible though distributed, large-scale cluster computing, often in concert with server virtualization software, like Xen, and parallel processing. Cloud computing can be contrasted with the traditional desktop computing model, where the resources of a single desktop computer are used to complete tasks, and an expansion of the client/server model. To paraphrase Sun Microsystems' famous adage, in cloud computing the network becomes the supercomputer.

Cloud computing is often used to sort through enormous amounts of data. In fact, Google has an initial edge in cloud computing precisely because of its need to produce instant, accurate results for millions of incoming search inquries every day, parsing through the terabytes of Internet data cached on its servers. Google's approach has been to design and manufacture hundreds of thousands of its own servers from commodity components, connecting relatively inexpensive processors in parallel to create an immensely powerful, scalable system. Google Apps, Maps and Gmail are all based in the cloud. Other companies have already created Web-based operating systems that collect online applications into Flash-based graphic user interfaces (GUIs), often using a look and feel intentionally quite similar to Windows. Hundreds of organizations are already offering free Web services in the cloud.

Sunday, February 22, 2009

structure of a program

Basic structure
NOTE:
this structure based on c language.


HEADER FILES
#include
#include

<---MAIN FUNCTION--->
main() OR void main(void)
{

CODE GOES HERE
PRINTF("CODE GOES HERE");
GETCH();
}
NOTE:
OPENING BRACES = CLOSING BRACES




Friday, February 20, 2009

ABC'S OF PROGRAM

What is program basically?the answer is simple Program is the Group of instructions which when execute perform a desire task.Assume that a civil engineer is constructing a building then what he should do? he must follow certain steps which are essentials to make a building.similarly programmer follows certain steps which are nothing but the syntax of a language and the logic use in a program.
In a C language Program There is a header in which you write the name of the file such as "stdio.h" and "conio.h"then a special type of function occurs which is called as a Main() function
In a main() function we write all the code. For Example
Note:
First install turbo c++ compiler or download from (http://www.4shared.com/file/45455435/bf6991ec/Turbo_C_v30.html?s=1)

#include <stdio.h>// file/library name.
#include <conio.h>//
Main()
{
printf("hello world"); //defined in stdio.h
getch(); //defined in conio.h
}
output:
hello world

OK ,Is the question arise in your mind that what are files or library?File in c language is the place where the bodies of function defined such as "printf();"in "stdio.h" and "getch();"in "conio.h" If you are using functions from the file then you must give the reference of it as in the above program.In the beginning you use builtin function we will talk about custom functions later,try above code by writing desired sentence in printf function.

C language

C language is a programming language.Its a Basic language for programmers.One who deal it in an
ideal manner he will never face any problem in building logic of the program.Logic is very essential to make a program For example you have to make a program which calculate sum.so what you should do?you have to think about the entities which are going to sum then appply addition opera-
tion on that.well C languauge can build console application means run on ms-dos.you can see ms dos by typing cmd in start ->run menu.If you want to be a programmer you should learn C language Because it builds foundation and provide ability to make a logic of a program.C language
a Procederal language it means that you have to provide each an every thing in your code you neither reuse nor extend your code while OOP provides reusability and extendibility we will talk about oop later.In the next post i will post the abc's of C language.

What is Programming?

Programming is a proffessional field like engineering teaching etc.In this field we have to learn
any language like c,c++,c#,vb and many more depend on you what you chooose. By using 
these language we can create programs such as a program which calculate sum,product,
diference and ratio.Even you can create a program which handles all the calculationof your
company this is called project(or a huge program).If You follow my blog(mycodesite.blogspot)
you can easily learn programming,firstly i will teach basics(theory) of programs then implement
in c language.