NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Trusted Enthusiast
crossrulz
Posts: 4,035
0 Kudos

Re: Simple LabVIEW Puzzle Challenge

[ Edited ]

Finally got something that worked...

 

I will wave my right to choose the next puzzle.

Active Participant
Hornless.Rhino
Posts: 599
0 Kudos

Re: Simple LabVIEW Puzzle Challenge

How do we know the cricket in the recording is a snowy tree cricket?

Active Participant
ShotSimon
Posts: 532
0 Kudos

Re: Simple LabVIEW Puzzle Challenge

Nice work Crossrulz.

 

So we are left to wonder if the guy is innocent:smileyhappy: Or maybe... the cricket had something to do with it?  Purposely changing his wing beats would provide the perfect cover if he had poisoned the entomologist.

 

Yes there is no way of knowing if it was a snowy tree cricket and some speculate that he may have lied on his application.  Labwork is a pretty nice gig.

 

-SS



Active Participant
ShotSimon
Posts: 532

Re: Simple LabVIEW Puzzle Challenge

[ Edited ]

1. This is a simple graphics puzzle.  Using LabVIEW draw a circle and create nine points along the circle, equidistance around the circumference.

We will call the points "1" - "9" on it excluding "0". 

 

Now start with the number 1 and double it, you get 2, draw a line from 1 to 2.

Now take 2 and double it, you get 4, draw a line from 2 to 4

Now take 4 and double it, you get 8, draw a line from 4 to 8

8 doubled is 16, but we only have the digits 1-9 so add the digits 1 + 6 = 7.  Draw a line from 8 to 7

 

Continue the pattern:

32 would reduce to 3 + 2 = 5

64 would reduce to 6 + 4 = 10, which would reduce further to 1 + 0 = 1, and so on always summing the digit to get an integer between 1 and 9.

 

Continue this pattern and see what happens.  1, 2, 4, 8, 16, 32, 64...

 

2.  Now try multiplying by 5s.  1, 5, 10, 15...

 

3.  Next, try counting by odd integers.  1, 3, 5...

 

The first person with all three pictures using LabVIEW graphics functions is the winner...

 

Have a Nice Weekend,

 

-SS



Knight of NI
Knight of NI
tst
Posts: 10,304

Re: Simple LabVIEW Puzzle Challenge

There you go:

 

Draw Points in Circle.png


___________________
Try to take over the world!
Active Participant
ShotSimon
Posts: 532
0 Kudos

Re: Simple LabVIEW Puzzle Challenge

Tst,

 

Very nice solution.  I hope you enjoyed it as much as I did.

 It's always fun seeing other peoples solutions.  Here is mine.

 

-SS

 

Circle of 9.png.

 



Knight of NI
Knight of NI
tst
Posts: 10,304
0 Kudos

Re: Simple LabVIEW Puzzle Challenge

Well, at least I learned from your solution that the sum of the digits of a number is equal to N MOD 9 (if you're willing to get 0 instead of 9). I didn't know that.


___________________
Try to take over the world!
Active Participant
ShotSimon
Posts: 532
0 Kudos

Re: Simple LabVIEW Puzzle Challenge

Not the most straight forward explanation here but the link will probabaly out live most the math sites:
http://en.m.wikipedia.org/wiki/Casting_out_nines


Knight of NI
altenbach
Posts: 23,145
0 Kudos

Re: Simple LabVIEW Puzzle Challenge

I prefer the regular (non-mobile) site: Casting_out_nines


LabVIEW Champion . Do more with less code and in less time .

Active Participant
ShotSimon
Posts: 532
0 Kudos

Re: Simple LabVIEW Puzzle Challenge

OK I read about this little program on the Commadore 64.

 

So here's the challenge... make the smallest program in Labview that implements: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10

Like the commadore 64.  Hint:  I ended up downloading a Commadore 64 font.

 

Smallest in size and shape and that looks closest to the Commadore 64 wins.  True randomness is not required as long as it looks random enough.

 

Light blue is with white font is required:smileyhappy:

 

-SS



By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page