Write an algorithm , flow chart , and a python program to
Step 1: start
Step 2: input the value and store in n
Step 3: check whether the value of n is smaller than zero,
If true, then display the n is negative value, go to step 5
Step 4: check whether n is equal to zero, if true then display n is zero
Otherwise, display n is positive
Step 5: stop
false true
true
false
Write an algorithm, flow chart, and a python program to input any two
number and find out the sum.
Step 1: begin
Step 2: input first number and store it in variable a
Step 3: input second number and store in variable b
Step 4: add the value a and b and store result in variable sum
Step 5: print the value of sum
Step 6: end
Write an algorithm , flow chart , and a python program to input any two
number and find out the sub.
Step 1: begin
Step 2: input first number and store it in variable a
Step 3: input second number and store in variable b
Step 4: subtract the value a and b and store result in variable sub
Step 5: print the value of sub
Step 6: end
Write an algorithm, flow chart , and a python program to input any two
number and find out the product .
Step 1: begin
Step 2: input first number and store it in variable a
Step 3: input second number and store in variable b
Step 4: multiply the value a and b and store result in variable product
Step 5: print the value of product
Step 6: end
Write an algorithm, flow chart, and a python program to input any two
numbers and find out the division.
Step 1: begin
Step 2: input first number and store it in variable a
Step 3: input second number and store in variable b
Step 4: divide the value b by a and store result in variable division
Step 5: print the value of division
Step 6: end
Write an algorithm, flow chart, and a python program to input length and
breadth to find area.
Step 1: begin
Step 2: input length and store it in variable l
Step 3: input breadth and store in variable b
Step 4: multiply the value l and b and store result in variable area
Step 5: print the value of area
Step 6: end
Write an algorithm, flow chart, and a python program to convert hours into
minutes.
Step 1: start
Step 2: input number of hours you want to convert and store it in variable
hours
Step 3: multiply the value of hours by 60, store in variable minutes
Step 4: output the final value of variable minutes
Step 5: end
Write an algorithm, flow chart , and a python program to convert minutes
into hours
Step 1: start
Step 2: input number of minutes you want to convert and store it in variable
minutes
Step 3: divide the value of minutes by 60, store in variable hours
Step 4: output the final value of variable hours
Step 5: end
Write an algorithm, flow chart, and a python program to find the perimeter of
the circle.
Step 1: start
Step 2: input the radius and store it in variable r
Step 3: multiply the value of r by 2 and then by 3.14, store result in variable
c.
Step 4: print the final value of c
Step 5: end
Write an algorithm, flow chart , and a python program to find out simple
interest
Step 1: begin
Step 2: input principal, time and rate, store in variable p, t, r respectively
Step 3: multiply the value of p , t, r and divide by 100, store the result in
variable si
Step 4: print the value of si
Step 5: end
Write an algorithm, flowchart and python program to find whether the
entered age is eligible to vote or not.
Step 1: start
Step 2: input the age of the people and store it in variable a
Step 3: if a>=18 then print you are “eligible to vote”
Else
Print you are” not eligible to vote”
Step 4: end
true false
Write an algorithm, flowchart, python program to find out greater number
among two number.
Step 1: Start
Step 2: Input two numbers and store them in variables a and b
Step 3: If a > b
Print "a is greater number"
Else
Print "b is greater number"
Step 4: end
Write an algorithm, flowchart and python program to check whether the
number is even or odd.
Step 1: start
Step 2: input any number and store it in variable a
Step 3: Check if a % 2 == 0
If true, Print "Even number"
Else
Print "Odd number"
Step 4: end
Write an algorithm , flowchart and python program to check given number is
exactly divisible by 5 or not.
Step 1: Start
Step 2: Input a number and store it in variable a
Step 3: Check if a% 5 == 0
If true , Print "The number is divisible by 5"
Else
Print "The number is not divisible by 5"
Step 4: End
Write an algorithm , flowchart and python program to enter day number and
print respective day according to the number.
Step 1: Start
Step 2: Input the day number
Step 3: If day number is 1, print "Sunday"
Step 4: Else if day number is 2, print "Monday"
Step 5: Else if day number is 3, print "Tuesday"
Step 6: Else if day number is 4, print "Wednesday"
Step 7: Else if day number is 5, print "Thursday"
Step 8: Else if day number is 6, print "Friday"
Step 9: Else if day number is 7, print "Saturday"
Step 10: Else print "Invalid day number"
Step 11: Stop
Write an algorithm,flowchart, python program to
print first ten natural numbers.
Step 1: Start
Step 2: Set variable i = 1
Step 3: Repeat steps 4 and 5 while i <= 10
Step 4: Print i
Step 5: Increment i by 1
Step 6: Stop
Write an algorithm, flowchart and python program to print
first ten even number.
Step 1: Start
Step 2: Set variable i = 1
Step 3: Repeat steps 4 and 5 while i <= 10
Step 4: Compute even number = 2 * i
Step 5: Print the even number
Step 6: Increment i by 1
Step 7: Stop
Write an algorithm , flowchart, and python program to
print from 5 to 50.
Step 1: Start
Step 2: Set variable i = 5
Step 3: Repeat steps 4 and 5 while i <= 50
Step 4: Print i
Step 5: Increment i by 1
Step 6: Stop
Write an algorithm, flowchart and python program to print
from 50 to 5 by decreasing 5 each time.
Step 1: Start
Step 2: Set variable i = 50
Step 3: Repeat steps 4 and 5 while i >= 5
Step 4: Print i
Step 5: Decrease i by 5 (i = i - 5)
Step 6: Stop
Write an algorithm ,flowchart and python program to print
multiplication table of 2.
Step 1: Start
Step 2: Set variable i = 1
Step 3: Repeat steps 4 and 5 while i <= 10
Step 4: Calculate result = 2 * i
Step 5: Print 2 * i = result
Step 6: Increment i by 1
Step 7: Stop
Write an algorithm , flowchart and python program to
print first odd numbers.
Step 1: Start
Step 2: Set variable i = 1
Step 3: Repeat steps 4 and 5 while i <= 10
Step 4: Calculate odd number = 2 * i - 1
Step 5: Print the odd number
Step 6: Increment i by 1
Step 7: Stop
Write an algorithm , flowchart and python program to
enter any ten number from user and display the total
sum.
Note : three only capital letters in keywords in python is
True False None.
# pp to enter any number and check whether it is
palindrome or not
# write a pp to enter any number and find the reverse of
that number
write pp to enter any number and find product of their
individual number
# python program to enter any number and find the sum
of thier individual digit