CP Lab 2
CP Lab 2
EXERCISE 2
For each of the following problem statement, create the IPO chart with
algorithm and flow chart.
Problem Statement 1
There are two circular grounds Ground-A and Ground-B. Ground-A is having
diameter of 15 meters and Ground-B is having diameter of 20 meters. Mohsin is
running in Ground-A and Neetesh is running in Ground-B. Write a computer
program that asks the user to input the time taken, in seconds, to complete one
compete round of the ground by both the friends and displays who is running
faster.
Problem Statement 2
Write a computer program that displays the sum of first 10 odd multiples of 3.
Problem Statement 3
Write a computer program that generates and displays the first N three digit odd
numbers. Whereas the number N is provided by the user.
Problem Statement 4
Write a computer program that displays the sum of last 5 four digit multiples of
5.
Problem Statement 5
Write a computer program that asks the user to input the starting number and
ending number of the range. The program should display the number of
multiples of 5 in between that range.
Problem Statement 6
Write a computer program that generates and displays the following series of
numbers:
15, 30, 45, 60, 75, 90, 105, 120, 135, 150
Problem Statement 7
Write a computer program that generates and displays the following series of
numbers:
1, 4, 9, 16, 25, 36, 49, 64, 81, 100
Problem Statement 8
Write a computer program that generates and displays the following series of
numbers:
90, 72, 56, 42, 30, 20, 12, 6, 2, 0