I am currently writing a small program in VS17 for my c++ class. I'm sure you all have heard this 'diving' question multiple times before and are probably annoyed by it, but I am almost done ironing out my code and need help with only a small issue. My program compiles and is correct for the most part.
I've looked everywhere. I only seem to find code that determines the highest/lowest value for specific variables (score1,score2,score3,score4...etc) and arrays; however, I am looking to determine the highest/lowest score inside a loop (around line 33-40).'inputScore' assigns all the scores to 'totalScore' after asking the user 5 times for a judges score. In simpler terms, I am trying to analyze each input and determine if it is the running highest/lowest value to subtract later on in my program.
I hope this makes sense and I really appreciate anyone reading this and having a go to complete it.
You could make two variables high and low for example and every time judge gives a score you could compare the new given score with the previous score and if it is higher(lower) than high(low) gets new score.