I was wondering if anybody could clean-up my code. I just implemented a two new lines and now one thing isn't working. I would probably be able to fix it if someone would clean up my code. By cleanup, I mean tell me what I don't need. There are lines I can get rid of but I don't know which ones because of the lengthiness of the code. Please help.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
Greg Brannon wrote:What "one thing" isn't working? Was it working before? What two new lines did you add? Why?
Finally, how is anyone supposed to know what code your program doesn't need?
When you enter 0 or blank, it return system errors. With my previous code, it worked. The new lines i added were:
I changed the code to this because it was not accepting anything greater than 999 due to automatic commas by NumberFormat. So either way, I have issues. Because I'm not relying on nos and yos, maybe I could get rid of some lines. If you could help me with any of the problems described, that would be great