07-06-2023 02:08 AM
@LVIEWPQ wrote:
@niibi wrote:
Hello,
Can some point out where the issue is for the student to finish up where they left off. With this design, the student needs straight solution, so it will great point out what is needed to be add and where. I guess it will help other who are trying to solve similar problem from the LabVIEW textbook.
Thank you all for your great work.
If you scroll back up a couple of posts, there are 6 solutions linked.
It might be spam (a spam message to build credit to do real harm)..
I see more and more somewhat sensible questions (although sometimes completely off topic) from 1st time posters. I suspect spammers discovered AI.
08-03-2023 02:08 AM
08-03-2023 11:30 AM
@cboyter wrote:
If you would submit that as "solution", I would give you a failing grade. You are not even carrying the student name of the original problem! I am 100% sure that you don't need three (!!!) FOR loops for that!
08-11-2023 11:15 AM
Well good thing you are not the instructor, right? That was the solution that the instructor gave and I received a 100% passing grade. Just like any form of coding software, there are 100 ways to accomplish the same task, and your solution is not necessarily the best. I never stated this was the best way, however, it worked for me. The original post was mine, I was simply following up to help future students with the question. You know utilizing a forum as it is intended to be used, for learning purposes and to help assist others. Now you do not have to troll the forum looking for things to complain about when someone ask the same question next year, **bleep**.
08-11-2023 01:21 PM - edited 08-11-2023 01:41 PM
@cboyter wrote:
You know utilizing a forum as it is intended to be used, for learning purposes and to help assist others..
That was exactly my point: a friendly nudge to see what can be simplified AND improved. Nothing more, nothing less.
Heeding my advice, you actually would have learned something important.
if your teacher gave you 100% for the above code, it tells me more about the quality of the course than they want the public to know. 😄
As an example of scalable code for a similar problem, you might have found my old code here. Note that one loop does it all. (The other two loops are for sorting the list by rank) And yes, it can still be improved by e.g. implementing correct handing of tied scores in the last loop.. 😄