0% found this document useful (0 votes)
38 views

Flowchart Assignment Diagrams

This document contains 3 programming questions. The first question is a program to convert Fahrenheit to Celsius. The second question is a program to find the sum of the first and last digits of a 4-digit number input by the user. The third question is a program to calculate the total number of illiterate men and women in an 80,000 population town given percentages for the population breakdown and literacy rates.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Flowchart Assignment Diagrams

This document contains 3 programming questions. The first question is a program to convert Fahrenheit to Celsius. The second question is a program to find the sum of the first and last digits of a 4-digit number input by the user. The third question is a program to calculate the total number of illiterate men and women in an 80,000 population town given percentages for the population breakdown and literacy rates.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

QUESTION ONE

Program to convert fahrnheit to centigrade degrees

start

Read F

C=(5/9)*(F-32)

Print C

End

QUESTION TWO

Program to obtain the sum of first and last digit of


four number input through keyboard

Start

Read N

Last_digit=N%10

First_digit = (N/10)

YES
N>=10

Sum =
First_digit+Last_digit

Print Sum

End
QUESTION THREE

PROGRAM TO FIND THE TOTAL NUMBER OF ILLITERATE MEN AND WOMEN IN 80000 POPULATION TOWN

START

Total population = 80,000


Percentage of men=52
Total number of literacy percentage=48

men literate percentage = 35

yes

total men=Total Population*Percentage of men/100


total woman = total population - total men
Total literate population = Total population * total literacy
percentage/100
total literate men= total population*men literacy
percentage/100
total literacy woman =total literacy population - total
literacy men
literate men = total men - total literacy men
illiterate woman =total woman-total literacy woman

Total number of Illiterate Men


Total number of Illiterate Women

END

You might also like