1 / 5

Movie Rater

Movie Rater. Create a page to allow a user to rate movies (or anything). When user changes value in drop-down select then use a loop to display the corresponding number of stars. If user clicks the calculate button at bottom, then loop through their rates and display an average. Finer points.

kim
Download Presentation

Movie Rater

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Movie Rater

  2. Create a page to allow a user to rate movies (or anything)

  3. When user changes value in drop-down select then use a loop to display the corresponding number of stars

  4. If user clicks the calculate button at bottom, then loop through their rates and display an average

  5. Finer points • If the user does not rate a movie, skip it in calculating the average. (In your loop sum up the rates and count up the number of rates, then when the loop is done divide the sum by the count.) • If the user changes a rate, then clear out any displayed average.

More Related