From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Digest Programming Challenges

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Digest Challenge 2

Hi Everyone and welcome to the second LabVIEW Digest Challenge! We had some excellent responses from the first challenge so I hope you’re all ready for another! You can win a free certification exam of your choice!

 

Email your entries to LabVIEWDigestCompetition@ni.com

 

The Challenge – Reverse Factorials:

Everyone is probably familiar with a factorial. 5 factorial is:

5! -> 5 x 4 x 3 x 2 x 1 = 120

 

For this challenge reverse it! Write LabVIEW code that tells us if our input number is a factorial or not.

 

If the number is a factorial it should return 'x!' where x is the factorial number.

E.g. 120 is 5 factorial, return '5!'

 

If the number is not a factorial it should return 'NONE'

 

The code should handle input numbers up to 9,223,372,036,854,775,807 – consider your data types!

 

Examples:

 

1.png

 

2.png

 

3.png

 

4.png

 

 

Close date: Monday 17th July

Please note the competition is only open to LabVIEW users in Europe, Middle East, India and Africa. 

Competition Rules

 

Happy coding!

Charlotte

 

Download All
Message 1 of 15
(12,726 Views)

What Happend???....Smiley Indifferent

Happy to Wire
Message 2 of 15
(12,613 Views)

Hey, 


We're still just getting the challenge ready at the moment. We will time the release of the challenge with our LabVIEW Digest Newsletter so keep an eye out for that. 


Schedule towards the end of June.

 

Thanks, 

Charlotte

0 Kudos
Message 3 of 15
(12,605 Views)

New competition is live!

Message 4 of 15
(12,384 Views)

Hi all,

this is my solution.

Regards

0 Kudos
Message 5 of 15
(12,348 Views)

Hi all,

 

This is my solution.

 

Regards,

Craig

0 Kudos
Message 6 of 15
(12,343 Views)

Lookup table makes things simple...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 15
(12,328 Views)

Hi,

here is my solution. God given lookuptabels are not necessary to make it easy 🙂

 

Cheers, Achim

Download All
0 Kudos
Message 8 of 15
(12,303 Views)

Hi, here is my solution.

 

 Fraction.png

0 Kudos
Message 9 of 15
(12,272 Views)
0 Kudos
Message 10 of 15
(12,244 Views)