Reminder: for each class session and associated homework:
|
help(string.join)
at the
prompt after importing the string module.Submit your Python source file by committing your changes to your SVN repository.
Often, the generated data is formatted so that another program can automate the process of analyzing, categorizing, and manipulating the data. In this problem you are to write and test a function functionDisplay in module, 4-funcDisplay.py, that implements the following design:
n 200 + 200cos(nπ/180)
where n ranges from 0 to num - 1. Make sure the output is neatly formatted so that numbers and decimal points line up. Below is a sample of the expected output. Your program's output should match this format exactly.
98 172.165 99 168.713 100 165.270 101 161.838 102 158.418 103 155.010 104 151.616 105 148.236 106 144.873 107 141.526 108 138.197 109 134.886 110 131.596 111 128.326 112 125.079 113 121.854 114 118.653 115 115.476 116 112.326 117 109.202 118 106.106 119 103.038 120 100.000 121 96.992 122 94.016
Submit your Python source file by committing your changes to your SVN repository.