Comments made in grading Postfix.java code

 

NOTE: Not all of the comments apply to everyone's program but it is helpful to see what people lost points for

 

  1. You saved the file as Postfixed.java which you were supposed to do but you forgot to rename the class so your code wouldn't compile.    -1
  2. Date not present OR Name and date present but not in Javadocs format
  3. Before submitting next time, look at your file in print layout in Word. That will show you which lines are too long.  Do NOT save while in Word. 
  4. "This program has ended normally" is the desired ending phrase.
  5. It is not enough to say "operand1 error", or "operand2 error" you must tell what the error is OR to say 't' not correct for operation +'. 
  6. You do not have enough inline documentation (comments)
  7. Your output does not conform to the specifications  a5+  should produce  a + 5 = 15 
  8. Some of your comments say WHAT you are doing… It is often better to try to explain HOW.   See me if it would help if I explained this more clearly.
  9. You should be echoing the input before you try to translate it.
  10. You should indent your code for readability.  If you understand what I want, please ask me in lab.
  11. Your output is missing an '=' sign  -2 
  12. It is not adequate to have comments telling what you corrected.  You need comments explaining what your program is doing and how it is doing it.
  13. Your echo should be labeled and it isn't
  14. You error message goes off the screen.  Break it into 2 lines either with 2 println statements or with a \n 
  15. You don't show the decimal values of your hex input      -3
  16. You say the "program ended normally" even when it bombs  -1
  17.  Your output expression does not match the specs   when an operand is a hex digit.  -5
  18.  Don't use the tab key to indent… It will make it hard to not have wraparound. 

ÏÏÏÏ