Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Where it says add logic, what commands can I add so that it selects what it asks ionly change -#include #include #include #include using namespace

Where it says add logic, what commands can I add so that it selects what it asks

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
ionly change -#include #include #include #include using namespace std; 10 // This is used to help provide feedback if the file can't be opened; leave it in and ignore it 11 extern "C" char# getcud(char* buf, size_t size); 12 13 Pint main () 14 15 const int MAX_MOVIES = 1080; 16 vector title(MAX_MOVIES) ; 17 vector releaseYear(MAX_MOVIES) ; 18 vector runtime(MAX_MOVIES) ; 19 vector genre(MAX_MOVIES); 20 vector imdbRating(MAX_MOVIES) ; 21 vector metaScore (MAX_MOVIES) ; 22 vector director(MAX_MOVIES) ; 23 // For the top 4 starts of each movie, we use a 2-dimensional array instead of a vector 24 string star [MAX_MOVIES] [4] ; 25 26 ifstream movieFile; string field; 28 unsigned int i; 29 int count; 30 31 // The movie details are derived from a dataset provided at 32 // https://www.kaggle. com/harshitshankhdhar/imdb-dataset-of-top-1000-movies-and-tv-shows movieFile . open("movies. txt"); 34 if (movieFile. fail()) { 35 char currentDirectory[255] ; 36 getcud(currentDirectory, sizeof(currentDirectory)) ; 37 cerr 210) { count+ +; cout

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

Step: 3

blur-text-image

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

Describe how you might deal with each.

Answered: 1 week ago

Question

define the marketing information system and discuss its parts

Answered: 1 week ago