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
- 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
- Date
not present OR Name and date present but not in Javadocs
format
- 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.
- "This
program has ended normally" is the desired ending phrase.
- 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 +'.
- You do
not have enough inline documentation (comments)
- Your
output does not conform to the specifications a5+
should produce a + 5 =
15
- 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.
- You
should be echoing the input before you try to translate it.
- You
should indent your code for readability.
If you understand what I want, please ask me in lab.
- Your output is missing an '=' sign -2
- 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.
- Your
echo should be labeled and it isn't
- You
error message goes off the screen.
Break it into 2 lines either with 2 println
statements or with a \n …
- You don't show the decimal values of your hex
input -3
- You
say the "program ended normally" even when it bombs -1
- Your output expression does not match the
specs when an operand is a hex
digit. -5
- Don't use the tab key to indent… It will
make it hard to not have wraparound.
ÏÏÏÏ