You may have to calculate percentage of your subjects in schools. However you can do that in copy but here is a simple tutorial on Making Percentage calculator in c++. This calculator is for 5 Subjects.
Code:
# include <iostream.h>
# include <conio.h>
void main()
{
clrscr();
float a,b,c,d,e,f;
cout<<"Marks in English"<<endl;
cin>>a;
cout<<"Marks in Maths"<<endl;
cin>>b;
cout<<"Marks in Physics"<<endl;
cin>>c;
cout<<"Marks in Chemistry"<<endl;
cin>>d;
cout<<"Marks in Computers"<<endl;
cin>>e;
clrscr();
cout<<"Total of Marks "<<a+b+c+d+e<<endl;
cout<<"Total Percentage "<<(a+b+c+d+e)/5<<" % "<<endl;
getch();
}
cout: This command lets you to print text on the screen when you run the Application.
cin:Allows you to add dynamic values in your program.
float: A vaiable only used if your program has decimal values.
More coming soon
Using the techniques from this you can try more things like Biodata form.
Bookmarks