Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!