reset password
Author Message
wcwir
Posts: 75
Posted 19:03 Feb 22, 2019 |

Hey, since you are studying for the quiz on Selections (Chapter 3), I thought you may be learning things you didn't quite understand when you did LAB 04. I opened up the deadline till 6 PM tomorrow (Saturday February 23rd) in case you want to rewrite your code or submit code you didn't get done before deadline.

I took a cursory look at some of your submissions, and notices some of you were confused about what 'max' means. Just to be clear: although in my sample runs the output was '3', it isn't always '3'!

If the user entered '3, 5, 1000', then the output would be '1000'.

If the input is '7, 7, 0', then the output is '7'.

If the input is '12, 12, 53', then the output is '53'. 

If the input is '9, 9, 9' then the output is '9'.

For the Divisible program, the output is NOT the result of division, but a message that tells the user whether the divisor divides the dividend evenly (in other words: whether divided is divisible by divisor), or, if the user enters input that would cause ArithmeticException, some (possibly sassy) message that tells the user your program is not falling for that trick.

If before you rushed to submit your code, please test it now and fix it if it doesn't work.

Last edited by wcwir at 19:03 Feb 22, 2019.