Common errors for hw4
This presentation is the property of its rightful owner.
Sponsored Links
1 / 5

Common Errors for HW4 PowerPoint PPT Presentation


  • 32 Views
  • Uploaded on
  • Presentation posted in: General

Common Errors for HW4. 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. PR 2. Input is in d egree, while the sin/ cos /atan2 accept radians atan vs. atan2 atan return value from [–PI/2,PI/2]

Download Presentation

Common Errors for HW4

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Common errors for hw4

Common Errors for HW4


Common errors for hw4

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.


Common errors for hw4

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]


Common errors for hw4

PR 3

  • You should format your matrix well

    • Either with space between elements

    • Or using setw function to align the elemnts


Common errors for hw4

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


  • Login