Making Decision
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Application of Looping

+22
ilovebts
janderjander
Bermon O. Ferreras Jr
Lhexmhar
rapzie badoodles
JULIAN P.A
Emie Ligutan
Rfrancis03
Asparin
LUNATHEGREAT
Jericho
RicManipon
iramae
Admin
Jung kook
Myra Monique Acuna
airojames
Pox
nyela
althea faye
James Navarro
justjoking10
26 posters
Go down
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Application of Looping

Thu Aug 02, 2018 7:17 pm
There may be other way, but this Flowchart explains how a 1 day timer works with the help of nested loop, while loop.

NOTE: There is no delay module in this program, so we assume that 1 is equal to 1 second.

Application of Looping 110

If you have questions, feel free to ask questions!
     else comment your reactions etc. Thanks!
avatar
justjoking10
Guru
Posts : 19
Join date : 2018-08-01

Application of Looping Empty Re: Application of Looping

Thu Aug 02, 2018 8:04 pm
Its very clear sir.
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Thu Aug 02, 2018 9:09 pm
justjoking10 wrote:Its very clear sir.
Nice for you. But what did you in your work?
James Navarro
James Navarro
Guru
Posts : 11
Join date : 2018-08-02

Application of Looping Empty Re: Application of Looping

Fri Aug 03, 2018 6:26 pm
Medyo matagal lang magprocess sa utak ko sir pero gets naman po yung logic nya po Smile

Sent from Topic'it App
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Fri Aug 03, 2018 6:47 pm
James Navarro wrote:Medyo matagal lang magprocess sa utak ko sir pero gets naman po yung logic nya po Smile

Sent from Topic'it App
It's okay. I hope you also enjoy doing this one.
avatar
althea faye
Guru
Posts : 10
Join date : 2018-08-07

Application of Looping Empty Re: Application of Looping

Tue Aug 07, 2018 9:18 am
sir , what is the advance of nested loop and while loop ?
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Tue Aug 07, 2018 9:22 am
althea faye wrote:sir , what is the advance of nested loop and while loop ?
While Looping is to do multiple times whatever process you want to do without rewriting the code but rather to have a Loop Control Variable. A nested loop is like having a loop within a loop
avatar
nyela
Guru
Posts : 10
Join date : 2018-08-07

Application of Looping Empty Re: Application of Looping

Tue Aug 07, 2018 12:33 pm
ito ang perfect example ng definite loop with a counter, pero pwede rin siyang magkaroon ng indefinite loop with sentinel value if lalagyan ng clock ng timer or alarm. pwede na pang project Smile
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Tue Aug 07, 2018 12:34 pm
nyela wrote:ito ang perfect example ng definite loop with a counter, pero pwede rin siyang magkaroon ng indefinite loop with sentinel value if lalagyan ng clock ng timer or alarm. pwede na pang project Smile
Yes it is!
avatar
nyela
Guru
Posts : 10
Join date : 2018-08-07

Application of Looping Empty Re: Application of Looping

Tue Aug 07, 2018 12:35 pm
Admin wrote:
althea faye wrote:sir , what is the advance of nested loop and while loop ?
While Looping is to do multiple times whatever  process  you want to do without rewriting the code but rather to have a Loop Control Variable. A nested loop is like having a loop within a loop

akala ko talaga dati ang "if" ay loop haha, share!Smile
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Tue Aug 07, 2018 12:39 pm
nyela wrote:
Admin wrote:
althea faye wrote:sir , what is the advance of nested loop and while loop ?
While Looping is to do multiple times whatever  process  you want to do without rewriting the code but rather to have a Loop Control Variable. A nested loop is like having a loop within a loop

akala ko talaga dati ang "if" ay loop haha, share!Smile
Now you know.
avatar
iramae
Guru
Posts : 10
Join date : 2018-08-08

Application of Looping Empty Re: Application of Looping

Wed Aug 08, 2018 7:56 am
For this sample, hanggang sa nalayo na yung topic, marerealize niyo na may ibang paraan pa pala yung pwede, iniisa isa lang talaga para maintindihan niyo lahat Smile
avatar
nyela
Guru
Posts : 10
Join date : 2018-08-07

Application of Looping Empty Re: Application of Looping

Wed Aug 08, 2018 8:10 am
iramae wrote:For this sample, hanggang sa nalayo na yung topic, marerealize niyo na may ibang paraan pa pala yung pwede, iniisa isa lang talaga para maintindihan niyo lahat Smile

Yah. and Also yung traffic lights ay application din yun ng loop Very Happy Very Happy Very Happy
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Wed Aug 08, 2018 8:29 am
nyela wrote:
iramae wrote:For this sample, hanggang sa nalayo na yung topic, marerealize niyo na may ibang paraan pa pala yung pwede, iniisa isa lang talaga para maintindihan niyo lahat Smile

Yah. and Also yung traffic lights ay application din yun ng loop Very Happy Very Happy Very Happy
Yes, in that way mas maiintindihan ang programming hehe #stepbystep
Pox
Pox
Guru
Posts : 11
Join date : 2018-08-11

Application of Looping Empty Re: Application of Looping

Sat Aug 11, 2018 7:13 pm
Kunti na lang ganyan na din yung program ko

Sent from Topic'it App
avatar
airojames
Guru
Posts : 11
Join date : 2018-08-01

Application of Looping Empty Re: Application of Looping

Sat Aug 11, 2018 7:47 pm
Sakin isa lang ginawa kong module pwede nman po yun dba?

Sent from Topic'it App
avatar
airojames
Guru
Posts : 11
Join date : 2018-08-01

Application of Looping Empty Re: Application of Looping

Sat Aug 11, 2018 7:49 pm
nyela wrote:ito ang perfect example ng definite loop with a counter, pero pwede rin siyang magkaroon ng indefinite loop with sentinel value if lalagyan ng clock ng timer or alarm. pwede na pang project [smiley]https://2img.net/i/fa/i/smiles/icon_smile.gif[/smiley]

Ngayon ko lang po napansin yun skl

Sent from Topic'it App
avatar
airojames
Guru
Posts : 11
Join date : 2018-08-01

Application of Looping Empty Re: Application of Looping

Sat Aug 11, 2018 7:50 pm
Sa isang activity pala yung isang module lang na tinutukoy ko po sensya na

Sent from Topic'it App
avatar
airojames
Guru
Posts : 11
Join date : 2018-08-01

Application of Looping Empty Re: Application of Looping

Sat Aug 11, 2018 7:51 pm
Pox wrote:Kunti na lang ganyan na din yung program ko


Sayang nga pre kung may time lang 2nd batch haha

Sent from Topic'it App
Myra Monique Acuna
Myra Monique Acuna
Guru
Posts : 11
Join date : 2018-08-01

Application of Looping Empty Re: Application of Looping

Sun Aug 12, 2018 1:28 pm
iramae wrote:For this sample, hanggang sa nalayo na yung topic, marerealize niyo na may ibang paraan pa pala yung pwede, iniisa isa lang talaga para maintindihan niyo lahat [smiley]https://2img.net/i/fa/i/smiles/icon_smile.gif[/smiley]

Habang tumatagal nga po ma'am nakakaamaze e, may ibang paraan pa pala na mas madaling gawin 😍

Sent from Topic'it App
Jung kook
Jung kook
Guru
Posts : 12
Join date : 2018-08-12

Application of Looping Empty Re: Application of Looping

Sun Aug 12, 2018 11:15 pm
May nakita akong flaw sa flowchart.

Kapag 59 second na, mag a-add ng 1 second. Edi, 60 seconds na. Mag O-output yung 00:00:60 then sunod 00:01:01.

Ewan ko lang, sa tingin ko (tingin ko lang naman) dapat 00:00:59, then 00:01:00 ang mangyari.

Opinion ko lang naman.

PS. You're free to correct me if I'm wrong hehe
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Sun Aug 12, 2018 11:48 pm
Myra Monique Acuna wrote:
iramae wrote:For this sample, hanggang sa nalayo na yung topic, marerealize niyo na may ibang paraan pa pala yung pwede, iniisa isa lang talaga para maintindihan niyo lahat [smiley]https://2img.net/i/fa/i/smiles/icon_smile.gif[/smiley]

Habang tumatagal nga po ma'am nakakaamaze e, may ibang paraan pa pala na mas madaling gawin 😍

Sent from Topic'it App
Good to know that you're amazed doing programming, it seems like you'll like it more along the road.
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Sun Aug 12, 2018 11:52 pm
Jung kook wrote:May nakita akong flaw sa flowchart.

Kapag 59 second na, mag a-add ng 1 second. Edi, 60 seconds na. Mag O-output yung 00:00:60 then sunod 00:01:01.

Ewan ko lang, sa tingin ko (tingin ko lang naman) dapat 00:00:59, then 00:01:00 ang mangyari.

Opinion ko lang naman.

PS. You're free to correct me if I'm wrong hehe
Good observation. But nope theres no chance that it will show 00:00:60 cause when seccounter = 60 it wont go to display but rather add 1 to minute then puts seccounter to 0 once again.
Admin
Admin
Admin
Posts : 132
Join date : 2018-07-25
https://jmdomain.forumotion.com

Application of Looping Empty Re: Application of Looping

Mon Aug 13, 2018 12:03 am
Admin wrote:
Jung kook wrote:May nakita akong flaw sa flowchart.

Kapag 59 second na, mag a-add ng 1 second. Edi, 60 seconds na. Mag O-output yung 00:00:60 then sunod 00:01:01.

Ewan ko lang, sa tingin ko (tingin ko lang naman) dapat 00:00:59, then 00:01:00 ang mangyari.

Opinion ko lang naman.

PS. You're free to correct me if I'm wrong hehe
Good observation. But nope theres no chance that it will show 00:00:60 cause when seccounter = 60 it wont go to display but rather add 1 to minute then puts seccounter to 0 once again.
Okay, to clear all doubts, you're right that when it is 59 it will go in to yes then we add 1 so the display will show 60.
Maybe what we can do is to put the display first before the process of adding 1 so it will become 59 first, put a 1second delay then proceed to the next steps. With that, we now rely on the Computer's ability to work so fast that even the display went 60 it will not be noticable by our naked eye.
avatar
iramae
Guru
Posts : 10
Join date : 2018-08-08

Application of Looping Empty Re: Application of Looping

Thu Aug 16, 2018 7:26 am
airojames wrote:
Pox wrote:Kunti na lang ganyan na din yung program ko


Sayang nga pre kung may time lang 2nd batch haha

Sent from Topic'it App

kaya next time, maging aware na sa oras and magiging strict na para fair na sa lahat Smile
Sponsored content

Application of Looping Empty Re: Application of Looping

Back to top
Permissions in this forum:
You cannot reply to topics in this forum