Site icon TestingDocs.com

Perfect Square Number Raptor Flowchart

Overview

In this post, we will model a Raptor flowchart to check if the number is a Perfect Square Number. The flowchart will prompt the user to enter a number.

Perfect Square Number

A perfect square is a number that can be expressed as the product of two integers. For example,

3×3 = 9

On the other hand, 80 is not a perfect square number. It is because we cannot express 80 as a product of two integers.

8×8 = 64

9×9= 81

Flowchart

The main flowchart handles the user input. It calls itself if the input is invalid. It calls a procedure if provided with a number. The procedure checks if the number.

Procedure

Sample Output

Save the flowchart and run the flowchart on your computer. Run some test cases to check if the flowchart is working as intended.

Sample flowchart output is shown below:

 

User Input :=abcd
ERROR: Invalid Input
User Input number is:=9
Number is Perfect Square
3x3=9
User Input number is:=80
Not Perfect Square
User Input number is:=81
Number is Perfect Square
9x9=81
User Input :=abc
ERROR: Invalid Input
User Input number is:=121
Number is Perfect Square
11x11=121
Thank you. Good Bye!

 

The flowchart is intelligent enough to discard illegal inputs. The flowchart would also prompt the user to check another number at the end. Based on the user choice it will calculate another number.

 

 

More Raptor Tutorials on this website can be found at:

https://www.testingdocs.com/raptor-a-flowchart-tool/

RAPTOR official website: https://raptor.martincarlisle.com/

Exit mobile version