Difference: CSC121S2023Lab2H2 ( vs. 1)

Revision 12022-12-29 - cathybareiss

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CSC121S2023Lab02"

Hint for code getting too complex

  1. "Write" down the four different output statements you would need to make.
  2. Add a comment to each statement that explains when that should be outputted (in English)
  3. These conditions can be mutually exclusive. That will make your code simpler.
  4. Be extremely careful if you try to use arithmetic to help. It can make the code much more complex than it needs to be. I highly recommend that you DON'T do it. It does not make your code better.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback