If the actor does not exist display an appropriate message void option4Movie

If the actor does not exist display an appropriate

This preview shows page 5 - 6 out of 6 pages.

listed movies, display "Actor has not acted in any movie." //If the actor does not exist, display an appropriate message. void option4(Movie movies[], int numMovies, Actor actors[], int numActors,Cast casts[], int numEntries, string fName, string lName){ } //This function searches for and prints the names of all movies released within the last month. void option5(Movie movies[], int numMovies){ } //This function searches for and prints the name(s) of the movies and the release date of all the movies that have not been released yet. void option6(Movie movies[], int numMovies){ } //This function searches for and prints the names of all movies with a star rating of 8.0 or more that have grossed over 1 billion dollars. void option7(Movie movies[], int numMovies){ } int main(){ string movieName; string fName; string lName; Movie movies[100]; Cast casts[10000]; Actor actors[100]; int i=0; int k=0; int j=0; int location;int numActors;int numMovies; int numCasts; int choice=0; numMovies =loadMovies(movies); numActors= loadActors(actors); printMenu(); cout<<"Please enter option (1,2,3,4,5,6,7 or 8):"; cin>>choice; while(choice!=8){ if(choice>=1 && choice<=8){ if(choice==1){ cout<<"Please enter Movie Name:"; cin>>movieName; location= searchMovieByName(movies,numMovies,movieName); if(location!=-1) option1(movies,numMovies,movieName); else cout<<"Movie is not found."<<endl; }
Image of page 5
if (choice==3){ cout<<"Please enter Actor Name:"; cin>>fName>>lName; location= searchActorByName(actors,numActors,fName,lName); if(location!=-1) option3(actors,numActors,fName,lName); else cout<<"Actor is not found."<<endl; } } cout<<"Enter a new choice:"; cin>>choice; } return 0; }
Image of page 6

You've reached the end of your free preview.

Want to read all 6 pages?

  • Spring '17
  • Computer Programming, Return statement, Carriage return, #include, int age, 1 Billion dollars, print functions

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture