LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Homework help: Ranking

Solved!
Go to solution

Hey everyone, 

 

For this homework problem I am doing, I managed to create most of the program for it however, I cant seem to have the output for this rank the "students" for this question in order. The question is essentially asking based on the student scores rank them with their grades from highest to lowest. I tried using the sort 1D array function and did not seem to work for my program. Was wondering if anyone would be able to help me with this, I know it is probably an easy fix looking for some help to learn where I went wrong. 

 

Any help is appreciated!!

 

TIA 🙂

(saved for LV 2018, prev versions do not have some of the stuff I used in them)

Paddle_to_the_sea21_0-1743998614544.png

Paddle_to_the_sea21_1-1743998667080.png

 

 

 

0 Kudos
Message 1 of 7
(115 Views)

(sorry, posting by phone and can only look at your pictures)

 

In the last loop, don't auto index on the pink array, but use the blue unbundled value to index into it.

 

(This same problem has been discussed years ago, so search the forum for more ideas)

0 Kudos
Message 2 of 7
(112 Views)

Try to understand this... 

0 Kudos
Message 3 of 7
(104 Views)

You deserve the highest grade for: saying its homework, posting your actual code, saving to older LV-version, telling us what you actually need help with.

 

(Altenbach should have you covered)

Certified LabVIEW Architect
Message 4 of 7
(80 Views)
Solution
Accepted by Paddle_to_the_sea21

@altenbach wrote:

(sorry, posting by phone and can only look at your pictures)

 

In the last loop, don't auto index on the pink array, but use the blue unbundled value to index into it.

 


Here's what I meant.

 

(Note that when attaching code, you should fill the controls with some typical default values before saving so we have something to play with)

 

altenbach_0-1744037881511.png

 

Message 5 of 7
(32 Views)

Awesome thank you so much!! This cured my big headache lol 

0 Kudos
Message 6 of 7
(12 Views)

Aha thank you! I find that for things I am not very good at (such as LabVIEW) it helps a lot more in the long run if I try and learn as much as possible rather than search for the answer. It is good practice for when I need to do projects with LV + the logic for LV is similar to other coding languages so it is good practice for that as well!

0 Kudos
Message 7 of 7
(11 Views)