Showing posts with label Pseudocode and Flowchart. Show all posts
Showing posts with label Pseudocode and Flowchart. Show all posts

Tuesday, October 15, 2019

Find Divisor of a Number Algorithm, Pseudocode and Flowchart


Programming Problem

Write pseudocode,algorithm, and flowchart to find divisor of a number 
and display the result on the screen.


Pseudocode

Start:
    Declare Integer i, n1
    
    Output "Find Divisor of a Number"
    Output "Give a Number:"
    Input n1
    Output "The divisors are :"
    For i = 1 to n1
        If n1 % i == 0
            Output i
        End
    End
Stop:


Algorithm


Step 1: Start
Step 2: Declare i, n1
Step 3: Input Give a Number say n1
Step 4: For i to 1 to n1
          IF n1 % i == 0
             print i
          ENDIF
        END
Step 5: Stop



Flowchart


I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Sunday, October 13, 2019

Count the Number of Digits Algorithms, Pseudocode and Flowchart


Programming Problem

Write an algorithm and pseudocode, draw a flowchart to count the number of digits in the given integer, and display the result on the screen.

Algorithm                                                                                          
Step 1: Start
Step 2: Declare variables n,count
Step 3: Input enter an integer says n
Step 4: WHILE n != 0
                n = n / 10
               count = count + 1
            END
Step 5: Display count
Step 6: Stop

Pseudocode
Start:
    Declare Integer n, count
     Assign count = 0
    Output "Enter an integer:"
    Input n
    While n != 0
        Assign n = n/10
        Assign count = count + 1
    End
    Output "Number of digits is  " &count &"."
Stop:





I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.