Sunday, April 11, 2010

New Logo!


Guys, i am gonna upload my new logo for express-cling!, i want your comments for further developments.

Simple C++ programs!

Hi guys,
             I am glad to upload my simple C++ calculator and a simple interest calculator on my group....  Express-cling.(link : http://groups.google.com/group/express-cling/).


Note:
These are simple programs, calculator enables you to do only simple arithmetical operations, and simple interest calculator allows you to calculate the Simple interest!

For Source code:


Calculator:




#include
#include
#include
#include
void main()
{
char name[20];
float a,b,ADD,SUB,MUL,DIV;
int con,end,opt;
clrscr();
cout<<"Enter your Name please : \n";
gets(name);
cout<<"welcome to THE CALCULATOR, Mr."<<<"\n\n\n";
cout<<"This calculator will enable you to do simple arithmetic operations like ADDITION, SUBTRACTION, MULTIPLICATION, DIVISION \n\n\n";
con:
cout<<"Enter two nos.....\n\n";
cin>>a>>b;
cout<<"What do you want to d Mr."<<<"\n\n 1. ADDITION \n2. SUBTRACTION \n3. MULTIPLICATION\n 4.DIVISION\n\n";
cout<<"enter your choice (1,2,3,4 ?)\n\n\n";
cin>>opt;
switch (opt)
{
case 1 :
ADD=a+b;
cout<<"the addition of two nos. is : "<<<"\n";
break;
case 2:
SUB=a-b;
cout<<"The subtraction of two nos. is "<<<"\n";
break;
case 3:
MUL=a*b;
cout<<"the multiplication of two nos. is "<<<"\n";
break;
case 4:
DIV=a/b;
cout<<"the division of two nos. is "<
<<"\n";
break;
default : cout<<"BUG!\n";
}
cout<<"Press <1> to continue, <2> to exit!\n\n";
cin>>opt;
if (opt==1)
goto con;
else
goto end;
end:
getch();
}




Simple Interest Calculator:


#include
#include
#include
#include
void main()
{
char name [20];
int a,c,b,x,e,opt,si;
float p,n,r;
clrscr();
cout<<"Welcome to INTEREST CALCULATOR\n";
cout<<"Enter your name please\n";
gets(name);
a:
cout<<"Enter the required fields!\n";
cout<<"Principal =\n";
cin>>p;
cout<<"No.of yrs =\n";
cin>>n;
cout<<"rate of interest =\n";
cin>>r;
cout<<"\tPrincipal =Rs. "<
<<"\n\n\tNo.of years = "<<<"\n\n\tRate of interest = "<<<"%\n\n";
cout<<"Simple interest\n";
si=(p*n*r/100);
cout<<"Simple interest = Rs. "<<<"\n";
cout<<"Press <1>to continue <2>to exit\n";
cin>>x;
if (x==1)
goto a;
else if(x==2)
goto b;
b:
getch();
}

Saturday, April 3, 2010

Sorry!

Hi viewers ,
I feel sorry for not updating my websites often, since busy reading books (Being a 10th student!), and from April 10th onwards i will develop my website with fun programs!!!!