Answer to Question #286238 in C for ericka

Question #286238

if the percentage of men is 54 from the population and total literacy is 80% from the population.Take note that the total literate men are 30 percent of the total population.


1
Expert's answer
2022-01-10T11:19:35-0500
#include<conio.h>
# include<stdio.h>
#include<stdlib.h>

//	Create a C program to find the total number of illiterate men and women from the population of the town.
//	if the percentage of men is 54 from the population, and total literacy is 80% from the population.
//	Take note that the total literate men are 30% of the population


int main()
{
	int PopSize = 100;
	int TotalLiteracy = 80;
	int PopMen = 54,PopWomen;
	int MenLiteracy,WomenLiteracy=30;
	
	printf("\n\tTotal Population = %d",PopSize);
	printf("\n\tMen   Population = %d %c",PopMen,'%');
	printf("\n\tWomen Population = %d %c",(100-PopMen),'%');
	printf("\n\n\tTotal Literacy   = %d %c",TotalLiteracy,'%');
	
	PopSize=5000;
	PopMen = (PopMen*PopSize)/100;
	PopWomen = PopSize - PopMen;
	TotalLiteracy = (TotalLiteracy*PopSize)/100;
	printf("\n\n\tTotal Population          = %d",PopSize);
	printf("\n\tAbsolute Men   Population = %d",PopMen);
	printf("\n\tAbsolute Women Population = %d",(PopSize-PopMen));
	printf("\n\n\tAbsolute Total Literacy = %d",TotalLiteracy);
	
	WomenLiteracy = (WomenLiteracy*PopSize)/100;
	MenLiteracy = TotalLiteracy - WomenLiteracy;
	
	printf("\n\n\tAbsolute Men   Literacy = %d",MenLiteracy);
	printf("\n\n\tAbsolute Women Literacy = %d",WomenLiteracy);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS