Cart | Help
 You are here: NI Home > NI Developer Zone > NI Discussion Forums Select Community English Français Italiano 日本語 한국어 Español 简体中文 繁体中文 Português (BR)

## BreakPoint

Trusted Enthusiast
Posts: 4,035

# Re: Simple LabVIEW Puzzle Challenge

[ Edited ]

Finally got something that worked...

I will wave my right to choose the next puzzle.

Active Participant
Posts: 599

# Re: Simple LabVIEW Puzzle Challenge

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

Active Participant
Posts: 532

# Re: Simple LabVIEW Puzzle Challenge

Nice work Crossrulz.

So we are left to wonder if the guy is innocent 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
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
Posts: 10,304

# Re: Simple LabVIEW Puzzle Challenge

There you go:

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

# 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

.

Knight of NI
Posts: 10,304

# 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
Posts: 532

# 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
Posts: 23,145

# 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
Posts: 532

# Re: Simple LabVIEW Puzzle Challenge

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

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

-SS