Program Development
Read Chapter 6 on Functions. There are several full length programs
in this chapter that I would like you to copy and run. Your code
must have the following template:
def main():
# the body of the program
...
main()
Each program will be in a file by itself with .py extension. You
must make sure that it runs as shown in the book. These programs
do NOT have to be turned in. However, you are likely to see
variations of these programs in the quizzes.
- Listing 6.1: TestMax.py
- Listing 6.2: PrintGradeFunction.py
- Listing 6.3: ReturnGradeFunction.py
- Listing 6.4: Increment.py
- Listing 6.5: GCDFunction.py
- Listing 6.6: TestGCDFunction.py
- Listing 6.8: Decimal2HexConversion.py
- Listing 6.9: DefaultArgumentDemo.py
- Listing 6.11: MultipleReturnValueDemo.py
- Listing 6.12: TestRandomCharacter.py
Please write answers to the following questions:
- p. 178 Check Point: 6.5, 6.8 - 6.10
- p. 180 Check Point: 6.12
- p. 188 Check Point: 6.17 - 6.19
- p. 190 Check Point: 6.20 - 6.21, 6.23
- p. 192 Check Point: 6.24 - 6.27