Friday, 24 April 2015

Array help in java(again)


hey guys, struggling , need understand or fail course. making program inputs scores of athletes , have array of user inputed scores. need find highest , lowest of inputed scores in array.i have user input have been having trouble using loop highest , lowest scores. can use ton of if-else statements don't want because need show teacher can better grade. if explain how appreciated.
 

post code have.

typical min/max pseudo code load first value temporary variable , use if statement in loop update value if next value in array higher/lower value in temp variable.

@ end of loop temp variable contain max/min.

b
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment