Tuesday 8 January 2013

Let Us C Chapter 1 Problem No:H-j


#include<iostream.h>
#include<conio.h>
void main()
{
int a; // inputs the population strenght
cin>>a;
// note that thre are some percentage criteria 52% total man 48% total woman.
// Total literacy rate is 48%
// 35% Literate men and 13% is of women
// So from these criteria we see that the total poupulation of illetrate men is 17% and 35% of women
float b;
b=((17.0/100.0)*a)+((35.0/100.0)*a);
cout<<"This is the total population of illetrate men and women: "<<b<<endl<<endl;
}

No comments:

Post a Comment

Comments please: