03-09-2018 04:41 PM
make a program that takes 5 numbers between 0 and 50 and do the following:
1-the program insert the numbers in a array
2- the program stores the numbers from lowest to highest
3-the program calculates the minimum, maximum and mean value
4-if the mean value is below 45 , the program display '' average below 45'', otherwise program display ''average above 70''
03-09-2018 04:50 PM
I would think that your class has covered everything required to solve this. Show is what you have tried and tell us what problems you cannot figure out and we will be happy to point you in the right direction.
(Side note: the word "project" in LabVIEW has a very specific meaning, so don't use it in the subject unless you are actually discussing a LabVIEW project (*.lvproj). My guess is that a simple VI (*.vi) is all you need for this simple task).
03-09-2018 06:53 PM
@k96 wrote:
4-if the mean value is below 45 , the program display '' average below 45'', otherwise program display ''average above 70''
Why would you have your program do that? There are quite a few numbers between 45 and 70 that you're forgetting about!
03-09-2018 08:38 PM
It would be very difficult to get an average over 70 if all numbers are below 50. 😄