Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions

Question

What point should the operational planning process be complete?

Answered: 1 week ago

Question

What is an interface? What keyword is used to define one?

Answered: 1 week ago

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago