Create a flowchart and an algorithm of different programs part three(3)

Codynn
5 Min Read

21. Create a flowchart and an algorithm to input Principal, Rate, Time and display total amount.

Algorithm:

Step 1: Start 

Step 2: Input Principal, Time and Rate (P, T, R)

Step 3: I = ( P * T * R ) / 100 

Step 4: A = P + I

Step 5: Print “ Total Amount “ A

Step 6: Stop/End

Flowchart:

Create a flowchart to display total amount.
Create a flowchart to display total amount.

22. Create a flowchart and an algorithm to display Area Of Square.

Algorithm:

Step 1: Start

Step 2: Input Length (L)

Step 3: A = L ^ 2

Step 4: Print “ Area of Square “ A

Step 5: Stop/End

Flowchart:

Create a flowchart to display Area Of Square.
Create a flowchart to display Area Of Square.

23. Create a flowchart and an algorithm to display the sum of first n natural numbers. 

Algorithm:

Step 1: Start

Step 2: Enter the number (N)

Step 3: S = N * (N + 1) / 2

Step 4: Print ” Sum of “, N, “Numbers is”, S

Step 5: Stop/End

Flowchart:

Create a flowchart to display the sum of first n natural numbers.
Create a flowchart to display the sum of first n natural numbers.

24.Create a flowchart and an algorithm to ask in number and print the sum square of the first n natural number.

Algorithm:

Step 1: Start

Step 2: Input the number (N)

Step 3: S = N * (N + 1) * (2 * N + 1) / 6

Step 4: Print “ Sum Of Square entered number is “ S

Step 5: Stop/End

Flowchart:

Create a flowchart to ask in number and print the sum square of the first n natural number.
Create a flowchart to ask in number and print the sum square of the first n natural number.

25. Create a flowchart and an algorithm to display total surface area of the hemisphere.

Algorithm:

Step 1: Start

Step 2: Input Radius (R)

Step 3: A = 3 * 3.14 * R ^ 2

Step 4: Print “ Total Surface Area of Hemisphere ” A

Step 5: Stop/End

Flowchart:

Create a flowchart to display total surface area of the hemisphere.
Create a flowchart to display total surface area of the hemisphere.

26. Create a flowchart and an algorithm to display the area of the circle.

Algorithm:

Step 1: Start

Step 2: Input Radius (R)

Step 3: A = 3.14 * R ^ 2 

Step 4: Print “ Area of Circle “ A

Step 5: Stop/End

Flowchart:

Create a flowchart to display the area of the circle.
Create a flowchart to display the area of the circle.

27. Create a flowchart and an algorithm to display total surface area and volume of cylinder.

Algorithm:

Step 1: Start

Step 2: Input Radius and Height (R, H)

Step 3: A = 2 * 3.14 * R * ( R + H )

Step 4: V = 3.14 * R ^ 2 * H

Step 5: Print “ Total Surface Area of Cylinder “ A

Step 6: Print “ Volume Of Cylinder “ V

Step 7: Stop/ End

Flowchart:

Create a flowchart to display total surface area and volume of cylinder.
Create a flowchart to display total surface area and volume of cylinder.

28. Create a flowchart and an algorithm to ask the user to enter the marks in any four subject and display weather the user is pass or fail.

Algorithm:

Step 1: Start

Step 2: Input marks of any four subjects. (a , b, c, d)

Step 3: total = a + b + c + d

Step 4: avg = total / 4

Step 5: If avg > 40

GoTo Step 6

Else GoTo Step 7

Step 6: Print “ You are Pass” 

GoTo Step 8

Step 7: Print “ You are Fail”

Step 8: Stop/End

Flowchart:

Create a flowchart and an algorithm to display weather the user is pass or fail.
Create a flowchart and an algorithm to display weather the user is pass or fail.

29. Create a flowchart and an algorithm to display the volume of the cylinder.

Algorithm:

Step 1: Start

Step 2: Input Radius and Height. (R, H)

Step 3: V = 3.14 * R ^ 2 * H

Step 4: “Volume of Cylinder” V

Step 5: Stop/End

Flowchart:

Create a flowchart to display the volume of the cylinder.
Create a flowchart to display the volume of the cylinder.

30. Create a flowchart and an algorithm to display the volume of the hemisphere.

Algorithm:

Step 1: Start

Step 2: Input Radius. ( R )

Step 3: V = ( 2 / 3 ) * 3.14 * R ^ 3

Step 4: Print “ Volume of Hemisphere” V

Step 5: Stop/End 

Flowchart:

Create a flowchart to display the volume of the hemisphere.
Create a flowchart to display the volume of the hemisphere.
Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *