The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

The Daily CLAD - Coding Challenge #2 - Venn Diagram Sorter

SercoSteveB
Active Participant

Consider the Venn Diagram below.  It has been combined with LabVIEW (empty U8 arrays have been added) to allow you to programmatically fill each segment with data.

 

 Coding+Challenge+#2+-+Multiples+Venn+Diagram.png

 

 

 

Write an application that sorts the data generated by the following VI into the appropriate segments (arrays) within the Venn Diagram.

 

 

Coding+Challenge+#2+-+Data+Setup.png

 

E.G #1.  The number 3 should be placed within the top left array on the Venn Diagram as it is a multiple of 3 but not a multiple of 4 or 5.

E.G #2.  36 should be placed within the top centre array on the Venn Diagram as it is a multiple of both 3 and 4 but not a multiple of 5.

 

NOTE:  A VI that can be used as a starting point is attached.

Comments