1. Open the Disk Management console by typing diskmgmt.msc at an elevated command prompt.
2. In Disk Management’s Graphical view, right-click an unallocated or free area, and then click New Simple Volume. This starts the New Simple Volume Wizard. (Note: If you need to create unallocated space, see the Tip Easily Shrink a Volume on a Windows 7 Disk for information on how to do this.)
3.The Specify Volume Size page specifies the minimum and maximum size for the volume in megabytes and lets you size the volume within these limits. Size the partition in megabytes using the Simple Volume Size field and then click Next
4. On the Assign Drive Letter Or Path page, specify whether you want to assign a drive letter or path and then click Next.
Sunday, June 8, 2014
Wednesday, May 7, 2014
C++ codeing for Calculate your health level (Weight and Height )
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
float hi,wi,bmi;
char an;
do{
cout<<" Enter your weight in 'kg' (kilograms): ";
cin>>wi;
cout<<endl;
cout<<" Enter your height in 'm' (meters): ";
cin>>hi;
cout<<endl;
//calculation
bmi=wi/pow(hi,2);
cout<<" Your bmi is "<<bmi;
cout<<endl;
if(bmi<18.5)
{
cout<<" You are underweight.";
cout<<endl;
}
else if(bmi==18.5)
{
cout<<" You are near underweight.";
cout<<endl;
}
else if(18.5<bmi && bmi<24.9)
{
cout<<" You are considered normal weight.";
cout<<endl;
}
else if(24.9<bmi && bmi<29.9)
{
cout<<" You are overweight."<<endl;
cout<<" You may wish to consult with your physician for medical help";
cout<<endl;
}
else if(bmi==29.9)
{
cout<<" You are near obese."<<endl;
cout<<" You may wish to consult with your physician for medical help";
cout<<endl;
}
else if(30<bmi)
{
cout<<" You are obese."<<endl;
cout<<" You may wish to consult with your physician for medical help";
cout<<endl;
}
cout<<endl;
cout<<" Do you wanna check onces more ?(Y/N)?";
cin>>an;
}while(an=='y'||an=='Y');
return 0;
}
#include<cmath>
using namespace std;
int main()
{
float hi,wi,bmi;
char an;
do{
cout<<" Enter your weight in 'kg' (kilograms): ";
cin>>wi;
cout<<endl;
cout<<" Enter your height in 'm' (meters): ";
cin>>hi;
cout<<endl;
//calculation
bmi=wi/pow(hi,2);
cout<<" Your bmi is "<<bmi;
cout<<endl;
if(bmi<18.5)
{
cout<<" You are underweight.";
cout<<endl;
}
else if(bmi==18.5)
{
cout<<" You are near underweight.";
cout<<endl;
}
else if(18.5<bmi && bmi<24.9)
{
cout<<" You are considered normal weight.";
cout<<endl;
}
else if(24.9<bmi && bmi<29.9)
{
cout<<" You are overweight."<<endl;
cout<<" You may wish to consult with your physician for medical help";
cout<<endl;
}
else if(bmi==29.9)
{
cout<<" You are near obese."<<endl;
cout<<" You may wish to consult with your physician for medical help";
cout<<endl;
}
else if(30<bmi)
{
cout<<" You are obese."<<endl;
cout<<" You may wish to consult with your physician for medical help";
cout<<endl;
}
cout<<endl;
cout<<" Do you wanna check onces more ?(Y/N)?";
cin>>an;
}while(an=='y'||an=='Y');
return 0;
}
C++ Coding for SriLanka NIC birth year finding
#include<iostream>
using namespace std;
int main()
{
int nu,s,g;
cout<<"Enter the NIC number";
cin>>nu;
// Year
s=nu/10000000%100;
cout<<"You was born in 19"<<s<<endl;
// gender
g=nu/10000%1000;
if (g<500)
{
cout<<"You are male";
}
else if(g>500)
{
cout<<"You are female";
}
return 0;
}
using namespace std;
int main()
{
int nu,s,g;
cout<<"Enter the NIC number";
cin>>nu;
// Year
s=nu/10000000%100;
cout<<"You was born in 19"<<s<<endl;
// gender
g=nu/10000%1000;
if (g<500)
{
cout<<"You are male";
}
else if(g>500)
{
cout<<"You are female";
}
return 0;
}
Friday, May 2, 2014
C++ Blood Donar and recipent program.
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char type[10],an;
cout<<"World Blood Donor Day is celebrated every 14th of June"<<endl;
cout<<"It encourages people to give blood and save lives."<<endl;
cout<<endl;
do{
cout<<"Please Enter your Blood Group here :";
cin>>type;
cout<<endl;
if(strcmp("AB+",type)==0||strcmp("ab+",type)==0 )
{
cout<<"You can donate blood to a person with type AB+."<<endl;
cout<<"You can recieve blood from anyone."<<endl;
cout<<"AB is the universal recipient. "<<endl;
}
else if(strcmp("AB-",type)==0||strcmp("ab-",type)==0)
{
cout<<"You can donate blood to a person with type AB+ or AB-."<<endl;
cout<<"You can recieve blood from O-,A-,B- and AB-."<<endl;
cout<<"AB is the universal recipient. "<<endl;
}
else if(strcmp("B+",type)==0||strcmp("b+",type)==0)
{
cout<<"You can donate blood to a person with type AB+ or B+."<<endl;
cout<<"You can recieve blood from O+,O-,B+ and B-."<<endl;
}
else if(strcmp("B-",type)==0||strcmp("b-",type)==0)
{
cout<<"You can donate blood to a person with type B+,B-,AB+ and AB-."<<endl;
cout<<"You can recieve blood from O- and B-."<<endl;
}
else if(strcmp("A+",type)==0||strcmp("a+",type)==0)
{
cout<<"You can donate blood to a person with type A+ or AB+."<<endl;
cout<<"You can recieve blood from O+,O-,A+ and A-."<<endl;
}
else if(strcmp("A-",type)==0||strcmp("a-",type)==0)
{
cout<<"You can donate blood to a person with type A+,A-, AB+ and AB-."<<endl;
cout<<"You can recieve blood from O- and A-."<<endl;
}
else if(strcmp("o-",type)==0||strcmp("O-",type)==0)
{
cout<<"You can donate blood to a anyone."<<endl;
cout<<"You can recieve blood from O-."<<endl;
cout<<" O is the universal donor."<<endl;
}
else if(strcmp("o+",type)==0||strcmp("O+",type)==0)
{
cout<<"You can donate blood to a person with type O+,A+, B+ and AB+."<<endl;
cout<<"You can recieve blood from O+ and O-."<<endl;
cout<<" O is the universal donor."<<endl;
}
else
{
cout<<"Invaild type of group, try again";
}
cout<<endl;
cout<<"Do you wanna check another blood group? (Y,N)";
cin>>an;
}while(an=='y'||an=='Y');
return 0;
}
#include<cstring>
using namespace std;
int main()
{
char type[10],an;
cout<<"World Blood Donor Day is celebrated every 14th of June"<<endl;
cout<<"It encourages people to give blood and save lives."<<endl;
cout<<endl;
do{
cout<<"Please Enter your Blood Group here :";
cin>>type;
cout<<endl;
if(strcmp("AB+",type)==0||strcmp("ab+",type)==0 )
{
cout<<"You can donate blood to a person with type AB+."<<endl;
cout<<"You can recieve blood from anyone."<<endl;
cout<<"AB is the universal recipient. "<<endl;
}
else if(strcmp("AB-",type)==0||strcmp("ab-",type)==0)
{
cout<<"You can donate blood to a person with type AB+ or AB-."<<endl;
cout<<"You can recieve blood from O-,A-,B- and AB-."<<endl;
cout<<"AB is the universal recipient. "<<endl;
}
else if(strcmp("B+",type)==0||strcmp("b+",type)==0)
{
cout<<"You can donate blood to a person with type AB+ or B+."<<endl;
cout<<"You can recieve blood from O+,O-,B+ and B-."<<endl;
}
else if(strcmp("B-",type)==0||strcmp("b-",type)==0)
{
cout<<"You can donate blood to a person with type B+,B-,AB+ and AB-."<<endl;
cout<<"You can recieve blood from O- and B-."<<endl;
}
else if(strcmp("A+",type)==0||strcmp("a+",type)==0)
{
cout<<"You can donate blood to a person with type A+ or AB+."<<endl;
cout<<"You can recieve blood from O+,O-,A+ and A-."<<endl;
}
else if(strcmp("A-",type)==0||strcmp("a-",type)==0)
{
cout<<"You can donate blood to a person with type A+,A-, AB+ and AB-."<<endl;
cout<<"You can recieve blood from O- and A-."<<endl;
}
else if(strcmp("o-",type)==0||strcmp("O-",type)==0)
{
cout<<"You can donate blood to a anyone."<<endl;
cout<<"You can recieve blood from O-."<<endl;
cout<<" O is the universal donor."<<endl;
}
else if(strcmp("o+",type)==0||strcmp("O+",type)==0)
{
cout<<"You can donate blood to a person with type O+,A+, B+ and AB+."<<endl;
cout<<"You can recieve blood from O+ and O-."<<endl;
cout<<" O is the universal donor."<<endl;
}
else
{
cout<<"Invaild type of group, try again";
}
cout<<endl;
cout<<"Do you wanna check another blood group? (Y,N)";
cin>>an;
}while(an=='y'||an=='Y');
return 0;
}
Thursday, April 3, 2014
How to Track Your Flight Status With Google?
Google provide the live flight state information of any flight in the world.
All you have to do is just type your flight no in google.
You will all information you need filght company name destination landed time etc.
How to block facebook from your google chrome?
You can see the file named hosts in blow path.
C:\Windows\System32\Drivers\etc
You have to edit in follow method.
Open the notepad program right click run as administrator.
click the file then click open hosts file from following location.
C:\Windows\System32\Drivers\etc.
You can see the IP address in last line
127.0.0.1
You can add the web address or URLs after IP address what you have to block.
if I want to block FACE BOOK
I should type 127.0.0.1 facebook.com.
C:\Windows\System32\Drivers\etc
You have to edit in follow method.
Open the notepad program right click run as administrator.
click the file then click open hosts file from following location.
C:\Windows\System32\Drivers\etc.
You can see the IP address in last line
127.0.0.1
You can add the web address or URLs after IP address what you have to block.
if I want to block FACE BOOK
I should type 127.0.0.1 facebook.com.
Friday, March 21, 2014
Subscribe to:
Posts
(
Atom
)

