Share
Go down
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Application of Looping

on 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.


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

Re: Application of Looping

on Thu Aug 02, 2018 8:04 pm
Its very clear sir.
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

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

Re: Application of Looping

on 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
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

on 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.
Guru
Posts : 10
Join date : 2018-08-07
View user profile

Re: Application of Looping

on Tue Aug 07, 2018 9:18 am
sir , what is the advance of nested loop and while loop ?
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

on 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
Guru
Posts : 10
Join date : 2018-08-07
View user profile

Re: Application of Looping

on 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
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

on 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!
Guru
Posts : 10
Join date : 2018-08-07
View user profile

Re: Application of Looping

on 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
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

on 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.
Guru
Posts : 10
Join date : 2018-08-08
View user profile

Re: Application of Looping

on 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
Guru
Posts : 10
Join date : 2018-08-07
View user profile

Re: Application of Looping

on 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
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

on 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
avatar
Guru
Posts : 11
Join date : 2018-08-11
View user profile

Re: Application of Looping

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

Sent from Topic'it App
Guru
Posts : 11
Join date : 2018-08-01
View user profile

Re: Application of Looping

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

Sent from Topic'it App
Guru
Posts : 11
Join date : 2018-08-01
View user profile

Re: Application of Looping

on 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://illiweb.com/fa/i/smiles/icon_smile.gif[/smiley]

Ngayon ko lang po napansin yun skl

Sent from Topic'it App
Guru
Posts : 11
Join date : 2018-08-01
View user profile

Re: Application of Looping

on 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
Guru
Posts : 11
Join date : 2018-08-01
View user profile

Re: Application of Looping

on 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
avatar
Guru
Posts : 11
Join date : 2018-08-01
View user profile

Re: Application of Looping

on 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://illiweb.com/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
avatar
Guru
Posts : 12
Join date : 2018-08-12
View user profile

Re: Application of Looping

on 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
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

on 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://illiweb.com/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.
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

on 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.
avatar
Admin
Posts : 132
Join date : 2018-07-25
View user profilehttp://jmdomain.forumotion.asia

Re: Application of Looping

on 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.
Guru
Posts : 10
Join date : 2018-08-08
View user profile

Re: Application of Looping

on 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

Re: Application of Looping

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