Java Programming Spring 2003 Homework #5 FAQ

Homework #5 FAQ

Question:

Do we need to support multiple operations before the "=" button is pressed? So would we need to support something like 1+2+3= ?

Answer:

No, feel free to support just one operation followed by an "=". It's not hard to support more (but it's not required).

   
Question:

Do we need to support unary minus ?

Answer:

No

   
Question:

What if the result of an operation overflows? Do we need to do something special to catch this, or can we just assume that the user doesn't do any operations that would result in overflow?

Answer:

You don't need to worry about overflow, just display whatever the result is (even if there was an overflow and the result of the operation is not correct).

   
Question:

Does our calculator need to look pretty?

Answer:

No part of the grade will be based on how pretty your user interface is, just make sure that it is usable...