Presentation is loading. Please wait.

Presentation is loading. Please wait.

Common Errors for HW4.

Similar presentations


Presentation on theme: "Common Errors for HW4."— Presentation transcript:

1 Common Errors for HW4

2 PR 1 The maxv function should only return the largest value, not the index for the largest value. No output should be done in this function.

3 PR 2 Input is in degree, while the sin/cos/atan2 accept radians
atan vs. atan2 atan return value from [–PI/2,PI/2] atan2 return value from [-PI,PI]

4 PR 3 You should format your matrix well
Either with space between elements Or using setw function to align the elemnts

5 PR 4 First ask the user to roll or not, then call the rand function.
There are three types of score Score of each roll Score of each round Total score


Download ppt "Common Errors for HW4."

Similar presentations


Ads by Google