in c++ vs19: Go on https://www.imdb.com/ and look up for some movies. Select at least 10 movies. For each movie you choose, store its title into an array called movies and its rate (score) into a second array called ratings. The same information for a single movie must be stored in elements having the same index in the two arrays. For example, if Jurassic Park is the third movie you choose, then both its title and its rate should have index 2. movies[2] = "Jurassic Park"; rating[2] = 8.1; Once you filled your arrays, print the list of all the movies from the highest score to the lowest. Follow this format: number_in_ranking. movie_title (movie_rate) newline If two movies have the same rate, their order doesn’t matter. Note: You cannot use structs, you cannot use classes, you cannot use matrices, you cannot use advanced data structures, you cannot use std::swap. Note: You can use templates if you need to. Remember to comment the code such that it is easy for other developers to understand it. Example (with 5 movies, you need at least 10): Input: movies[5] = {"The Godfather", "Home Alone", "Jurassic Park", "The Matrix", "Forrest Gump"}; ratings[5] = {9.2, 7.6, 8.1, 8.7, 8.8} Output: 1. The Godfather (9.2) 2. Forrest Gump (8.8) 3. The Matrix (8.7) 4. Jurassic Park (8.1) 5. Home Alone (7.6) Explanation: The list ranks the movies from highest rate to lowest: The Godfather is the movie with highest score (9.2) so it is the first one to be printed out; Home Alone is the movie with lowest score, so it is the last one to be printed out. Constraints: • 10 <= number of movies <= 100 (this means you can have from 10 to 100 movies

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

in c++ vs19:

 

Go on https://www.imdb.com/ and look up for some movies. Select at least 10 movies. For each movie you choose, store its title into an array called movies and its rate (score) into a second array called ratings. The same information for a single movie must be stored in elements having the same index in the two arrays. For example, if Jurassic Park is the third movie you choose, then both its title and its rate should have index 2.
movies[2] = "Jurassic Park";
rating[2] = 8.1;
Once you filled your arrays, print the list of all the movies from the highest score to the lowest. Follow this format:
number_in_ranking. movie_title (movie_rate) newline
If two movies have the same rate, their order doesn’t matter.
Note: You cannot use structs, you cannot use classes, you cannot use matrices, you cannot use advanced data structures, you cannot use std::swap.
Note: You can use templates if you need to.
Remember to comment the code such that it is easy for other developers to understand it.
Example (with 5 movies, you need at least 10):
Input:
movies[5] = {"The Godfather", "Home Alone", "Jurassic Park", "The Matrix", "Forrest Gump"};
ratings[5] = {9.2, 7.6, 8.1, 8.7, 8.8}
Output:
1. The Godfather (9.2)
2. Forrest Gump (8.8)
3. The Matrix (8.7)
4. Jurassic Park (8.1)
5. Home Alone (7.6)
Explanation: The list ranks the movies from highest rate to lowest: The Godfather is the movie with highest score (9.2) so it is the first one to be printed out; Home Alone is the movie with lowest score, so it is the last one to be printed out.
Constraints:
• 10 <= number of movies <= 100 (this means you can have from 10 to 100 movies)

Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY