In c++, using STL containers, iterators, and algorithms ADD data to the existing text file movies.txt. The movies.txt file provided: The Adventures of a Babysitter $10 Barney $25 Larry the Car Man $15 Dora and the missing map $15 Ceasar and the Lunch Lady $10 Suzie and the Bad Kids $13.95 Console Movies program COMMAND MENU add - user is able to add movie and price to movies.txt command: add cout << "What movie would you like to add?"; cin>>Bob and the Horses cout << "What is the price of the movie?"; cin>> $5 "Movie successfully added to movies.txt" ----------------------------------------------------------------------------------------- Updated movies.txt file with user movie/price added: The Adventures of a Babysitter $10 Barney $25 Larry the Car Man $15 Dora and the missing map $15 Ceasar and the Lunch Lady $10 Suzie and the Bad Kids $13.95 Bob and the Horses $5
In c++, using STL containers, iterators, and
The movies.txt file provided:
The Adventures of a Babysitter $10
Barney $25
Larry the Car Man $15
Dora and the missing map $15
Ceasar and the Lunch Lady $10
Suzie and the Bad Kids $13.95
Console
Movies program
COMMAND MENU
add - user is able to add movie and price to movies.txt
command: add
cout << "What movie would you like to add?";
cin>>Bob and the Horses
cout << "What is the price of the movie?";
cin>> $5
"Movie successfully added to movies.txt"
-----------------------------------------------------------------------------------------
Updated movies.txt file with user movie/price added:
The Adventures of a Babysitter $10
Barney $25
Larry the Car Man $15
Dora and the missing map $15
Ceasar and the Lunch Lady $10
Suzie and the Bad Kids $13.95
Bob and the Horses $5
Step by step
Solved in 4 steps with 4 images