the most easiest 1... output all prime numbers from 1 to 1000
t includes all processes u requires.. loop, sequence and repetition
flowcharts(loop,sequence,repetition), programming ..
flowcharts(loop,sequence,repetition), programming ..
|
|
Feb 14 2011, 02:53 PM
Return to original view | Post
#1
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,196 posts Joined: Oct 2006 From: Kampung |
the most easiest 1... output all prime numbers from 1 to 1000
t includes all processes u requires.. loop, sequence and repetition |
|
|
|
|
|
Feb 14 2011, 11:03 PM
Return to original view | Post
#2
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,196 posts Joined: Oct 2006 From: Kampung |
lols...i tot u ask for easy 1..haha ..there loads of examples using numbers.
1) converting seconds into hours, minutes and seconds 2) converting days into years 3) taking input from user then sum it up if using real life situation.. cooking maggi can be used also.. you can easily make repetition and loop out of it. BTW, flow chat usually start with 1 head and end with 1 tail. Pseudo code is basically transfer the code into understandable english |
|
|
Feb 15 2011, 12:45 AM
Return to original view | Post
#3
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,196 posts Joined: Oct 2006 From: Kampung |
QUOTE(shark7 @ Feb 15 2011, 12:15 AM) can explain how to do looping on this ? and what is fission btw ? Google is there to help but not to provide everything..lolsdo u have the example of the output 1-1000 or any of the idea u suggested.can't find it on google bout the psuedocode ,i dun understand also,i mean..i wanted to write it but im not sure it's correct or wrong btw.what did u guys thing bout snake and ladder game ? just for confirmation,is this correct ? sequence = process looping = a diamond shape box and is something like moving backward ?use the process again and again ? repetition= is it something repetitive ? i = 0; i%2 if answer == 1 odd number show the output i++ else even number i++ so if i != 1000, then loop the whole thing again looping and repetition is the same thing.. your idea of sequence and looping is correct...repetition is same as looping |
|
|
Feb 15 2011, 12:46 PM
Return to original view | Post
#4
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,196 posts Joined: Oct 2006 From: Kampung |
QUOTE(shark7 @ Feb 15 2011, 11:36 AM) thank you vry much. snake and ladder's game play? this is quite boring as its almost the same as counting 1 to 100 but adding random numbers.is snake and ladder a good idea ? hurm.i wanted to do a process of how to make/fix control car but looks hard . hmm...im so curious why out of so many things, you choose all the complicated one instead of the easy one as you are not very sure even for the easy one.. do the basic 1st then just advance.. one step at a time |
|
|
Feb 15 2011, 03:25 PM
Return to original view | Post
#5
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,196 posts Joined: Oct 2006 From: Kampung |
QUOTE(Joey Christensen @ Feb 15 2011, 03:17 PM) The sample posted is wrong at the beginning. The first and the end process "box" should be of a "rounded" shaped a.k.a terminator a.k.a terminal point and the subsequent "box" is in "rectangular" shaped a.k.a process (and it could be alternate process which is almost shaped like a rectangular but with an rounded/smooth edges. If it's a looping possibilities, it should be a "diamond" shaped a.k.a preparation or maybe you can use decision (shaped like a square but it's positioned like a diamond and it could be a "hexagonal" shaped too (if applicable). In my humble opinion, the graphical flowchart is best to depict the process of cooking an instant noodle. i think you mean parallelogram. I've done the same flowchart for my HRM and BDU before and I learnt quite a lot from the seniors. What you need to do is think logically and think of the possibilities of consequence(s) that will entail from one "box" to another. Regards, Joey p.s: Please use the rightly shaped box for the process. Let's just say I learnt all these from the hard way and with some scoldings as well. Well, at least I learnt to fish from those seniors. nice and detail one thou.. does this flow chat thingy really cost u some scoldings? i think its kinda over react for them |
| Change to: | 0.0273sec
0.63
6 queries
GZIP Disabled
Time is now: 14th December 2025 - 07:56 PM |