Question
(0) Assignment Name JavaScript Concepts II Assignment Filename lastname-movieScores.html (replace lastname with your last name). movies.js Assignment Description This assignment demonstrates the following concepts: JavaScript
(0)
Assignment Name |
JavaScript Concepts II |
Assignment Filename |
lastname-movieScores.html (replace lastname with your last name). movies.js |
Assignment Description |
This assignment demonstrates the following concepts: JavaScript Arrays and Loops |
Assignment Instructions
| Given a list of movie scores, determine how many good, ok and bad movies were there. Create a for loop to go through the movieScore list. Add scores over 7 to the goodMovies array. Add scores between 5 and 7 to the okMovies array. Add the rest of the scores to the the badMovies array. Also, calculate the average rating for all of the movies. Finally, print out how many good, ok and bad movies there were and what the overall total score was. Use the starter files and complete the logic to satisfy the instructions. To access the files, download and save the movieScores.zip folder attached to this assignment. Then unzip the compressed folder to reveal the included files: movieScores.html and movies.js. Be sure that the two files are in the same folder. Then write your code in the movies.js file. Sample Output:
|
Assignment Deliverables | Upload the lastname-movieScores.html and the movies.js file to the JS Concepts Assignment II link in Brightspace (replace lastname with your last name). |
Assignment Name |
JavaScript Concepts II |
Assignment Filename |
lastname-movieScores.html (replace lastname with your last name). movies.js |
Assignment Description |
This assignment demonstrates the following concepts: JavaScript Arrays and Loops |
Assignment Instructions
| Given a list of movie scores, determine how many good, ok and bad movies were there. Create a for loop to go through the movieScore list. Add scores over 7 to the goodMovies array. Add scores between 5 and 7 to the okMovies array. Add the rest of the scores to the the badMovies array. Also, calculate the average rating for all of the movies. Finally, print out how many good, ok and bad movies there were and what the overall total score was. Use the starter files and complete the logic to satisfy the instructions. To access the files, download and save the movieScores.zip folder attached to this assignment. Then unzip the compressed folder to reveal the included files: movieScores.html and movies.js. Be sure that the two files are in the same folder. Then write your code in the movies.js file. Sample Output:
|
Assignment Deliverables | Upload the lastname-movieScores.html and the movies.js file to the JS Concepts Assignment II link in Brightspace (replace lastname with your last name). I NEED THIS IN JAVA PLEASE, thank you in advance. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started