🔒 Closed Algorithm and flowchart

Status
Not open for further replies.
1-
- declare ka ng variables [sum=0 ... numbers]
- loop mo yung process na [input numbers... sum + numbers]
ito pala yung solution para makuha yung sum: sum = sum + numbers
set mo yung condition ng loop na hanggang 50 iterations lang...
- kapag nagexit na sa loop... output the sum...

2-
- variable[numbers]
- loop [input numbers... print numbers] input-output lang...
set condition to 20...
unlike doon sa 1... doon sa 2 kasama ang output process sa loop...
 
1-
- declare ka ng variables [sum=0 ... numbers]
- loop mo yung process na [input numbers... sum + numbers]
ito pala yung solution para makuha yung sum: sum = sum + numbers
set mo yung condition ng loop na hanggang 50 iterations lang...
- kapag nagexit na sa loop... output the sum...

2-
- variable[numbers]
- loop [input numbers... print numbers] input-output lang...
set condition to 20...
unlike doon sa 1... doon sa 2 kasama ang output process sa loop...
thanks dito ts newbie palang ako ih hahaha
 
flowchart for problem #1

-start symbol
-flow line pointing to preparation
-preparation symbol (prepare sum=0,counter=0,num=0)
-create a flow line pointing to input/output
-create input/output symbol saying "Enter a value for num"
-flow line to decision symbol
-in decision symbol create a condition that is "is counter<50?"

-if yes create a flowline poiting to process symbol
-use process symbol inside the symbol define the process that is sum=sum+num then iterate num(counter+=1 or counter=counter+1 or counter++). if you forget to iterate counter it will cause infinite loop and
-create a flowline pointing back to the decision symbol.
-in decision symbol if the condition is no create a flowline pointing to input/ouput symbol
-in input/output symbol write "display sum"
-create a flow line pointing to end symbol
 
flowchart for problem #2

-start symbol
-create a flowline pointing to preparation symbol
-create a preparation symbol then prepare counter=1
-create a flowline pointing to decision symbol
-create a decision symbol and write the condition which is "is counter<=50?"
-if condition is true create a flow line pointing towards input/output symbol
-create input/output symbol displaying print "counter"
-create a flowline pointing to process and define the process which is to iterate the counter (counter=counter+1).
-create a flow line pointing back to the decision symbol.
-if in decision symbol the condition is "no" then create a flowline pointing towards end symbol
 
pa solve po sa akin pls! algo at flow po.
create a flowchart/algo that will accept the number of hours and convert it to its equivalent value in week,day,minute and second
Note:1week=7days 1day=24hours 1hour=60min. 1min=60sec.
 
Status
Not open for further replies.

About this Thread

  • 15
    Replies
  • 889
    Views
  • 7
    Participants
Last reply from:
mjsebastian271

Online now

Members online
959
Guests online
883
Total visitors
1,842

Forum statistics

Threads
2,276,251
Posts
28,968,671
Members
1,231,183
Latest member
Highness08
Back
Top