1.Using a "For loop" function, create a program which stores three movie titles, the main character (r name in life) and the character name in the movie. The program must also display the entered information. Example output:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.5: A Case Study: Solving Quadratic Equations
Problem 2E
icon
Related questions
Question

USE C++

1.Using a "For loop" function, create a program which stores three movie titles, the main character (real
name in life) and the character name in the movie.
The program must also display the entered information.
Example output:
Enter movie title: The Matrix
Enter Main Character (real name in life) : Keanu Reeves
Enter character name in the movie: Neo
Enter movie title: Life Of Pi
Enter Main Character (real name in life) : Suraj Sharma
Enter character name in the movie: Pi Patel
Enter movie title: X-Men
Enter Main Character (real name in life) : James McAvoy
Enter character name in the movie: Professor X
Movies:
The Matrix (Keanu Reeves as Neo)
Life Of Pi (Suraj Sharma as Pi Patel)
X-Men (James McAvoy as Professor X)
Transcribed Image Text:1.Using a "For loop" function, create a program which stores three movie titles, the main character (real name in life) and the character name in the movie. The program must also display the entered information. Example output: Enter movie title: The Matrix Enter Main Character (real name in life) : Keanu Reeves Enter character name in the movie: Neo Enter movie title: Life Of Pi Enter Main Character (real name in life) : Suraj Sharma Enter character name in the movie: Pi Patel Enter movie title: X-Men Enter Main Character (real name in life) : James McAvoy Enter character name in the movie: Professor X Movies: The Matrix (Keanu Reeves as Neo) Life Of Pi (Suraj Sharma as Pi Patel) X-Men (James McAvoy as Professor X)
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning