---+Hint for code getting too complex 1. "Write" down the four different output statements you would need to make. 1. Add a comment to each statement that explains when that should be outputted (in English) 1. These conditions can be mutually exclusive. That will make your code simpler. 1. Be <b>extremely</b> careful if you try to use arithmetic to help. It can make the code much more complex than it needs to be. I <b>highly</b> recommend that you <b>DON'T</b> do it. It does not make your code better.
This topic: CenterForComputing
>
WebHome
>
Syllabi
>
CSC121SylS2023
>
CSC121S2023Lab02
>
CSC121S2023Lab2H2
Topic revision: r1 - 2022-12-29 - cathybareiss
Copyright © 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