Sunday, October 13, 2019

Factorial Number Algorithms,Pseudocodes and Flowcharts


Programming Problem

Write an algorithm and pseudocode, draw a flowchart to ask the user to give a number and then, it will compute the factorial value of the given number and display the result on the screen.

Algorithm 
                                                                                         
Step 1:  Start
Step 2:  Declare variables a,f,i
Step 3:  Input Give a Number say a
Step 4:  Initialize f = 1
             Initialize i = 1
Step 5: WHILE i <= a
                f = f * i
               i = i + 1
            END
Step 6: Display f
Stop 7: Stop

Pseudocode

Start:
    Declare Integer a, f, i
    Output "Factorial Solver"
    Output "Give a Number:"
    Input a
    Assign f = 1
    Assign i = 1
    While i <= a
        Assign f = f * i
        Assign i = i + 1
    End
    Output "Factorial : " & f & "."
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.

No comments:

Post a Comment