50 likes | 203 Views
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.
E N D
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 • 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.