This is really pissing me off.. its not that hard, but I just can't get it to work.. heres what has to happen.
Write a program that allows a user to enter a series of integers with a -99 to signal the end of the series. The program should then display the largest and the smallest of the numbers in the series. Do *not* use a bogus value for the largest and smallest to begin the program. Use the first value in the data list (if any) to initialize your largest and smallest. This program must have only *one* programmer-defined method other than main which outputs user directions to the console about how the program works (and that -99 is to be used to end the input). Note that an empty list is possible and should not confuse your program! After displaying directions to the console, use GUI for the remaining input and output. Try out your program on the following lists:
I have been sitting here for hours, trying to get this to work. I have tried just about everything, but can't get this simple sorting complete.. if anyone could help that would be great. THANKS
Write a program that allows a user to enter a series of integers with a -99 to signal the end of the series. The program should then display the largest and the smallest of the numbers in the series. Do *not* use a bogus value for the largest and smallest to begin the program. Use the first value in the data list (if any) to initialize your largest and smallest. This program must have only *one* programmer-defined method other than main which outputs user directions to the console about how the program works (and that -99 is to be used to end the input). Note that an empty list is possible and should not confuse your program! After displaying directions to the console, use GUI for the remaining input and output. Try out your program on the following lists:
I have been sitting here for hours, trying to get this to work. I have tried just about everything, but can't get this simple sorting complete.. if anyone could help that would be great. THANKS
