Untitled input.txt Wednesday, April 14, 2021, 6:52 PM 1 Zodiac 2 Jake Gyllenhaal 3 Mark Ruffalo 4 Drama 5 Crime 6 2007 7 8 8 Based on the Robert Graysmith books about the real life notorious Zodiac, a...

1 answer below »
The program should be in C++ language. functions should be in separate files and I need myheader.h and main.cpp files. everything in assignment3.pdf has to be done.


Untitled input.txt Wednesday, April 14, 2021, 6:52 PM 1 Zodiac 2 Jake Gyllenhaal 3 Mark Ruffalo 4 Drama 5 Crime 6 2007 7 8 8 Based on the Robert Graysmith books about the real life notorious Zodiac, a serial killer who terrorized San Francisco with a string of seemingly random murders during the 1960s and 1970s. 9 10 You Don't Mess with the Zohan 11 Adam Sandler 12 John Turturro 13 Comedy 14 Action 15 2008 16 6 17 An Israeli Special Forces Soldier fakes his death so he can re-emerge in New York City as a hair stylist. 18 19 Yankee Doodle Dandee 20 James Cagney 21 Joan Leslie 22 Musical 23 Biography 24 1942 25 8 26 This film depicts the life of the renowned musical composer, playwright, actor, dancer and singer George M. Cohan. 27 28 X-Men 3: The Last Stand 29 Hugh Jackman 30 Patrick Stewart 31 Action 32 Action 33 2006 34 7 35 When a cure is found to treat mutations, lines are drawn amongst the X-Men, led by Professor Charles Xavier (Stewart), and the Brotherhood, a band of powerful mutants organized under Xavier's former ally, Magneto (McKellen). 36 37 X-Men 2 38 Hugh Jackman 39 Patrick Stewart 40 Action Page 1 input.txt Wednesday, April 14, 2021, 6:52 PM 41 Action 42 2003 43 8 44 Several months had passed since The X-Men defeated Magneto and imprisoned him in a plastic chamber. One day, a mutant going by the name of Nightcrawler infiltrates The White House and attempts to assassinate The President. Meanwhile, Logan is trying to discover his past, and wonder why he became a mutant. However, the friction between the humans and mutants is grinding much harder. As a scientist named William Stryker is assigned to discover about Professor X's secret school and his chamber called Cerebro. Meanwhile, Magneto's partner, Mystique, is planning to break her leader out of prison. Then, Professor X's school is attacked by Stryker's forces. Logan, Rougue, Iceman and others escaped. The rest of The X-Men meet in Boston along with Magneto, who escaped from prison. They must work together to stop Stryker and rescue Professor X. 45 46 X-Men 47 Hugh Jackman 48 Patrick Stewart 49 Action 50 Action 51 2000 52 7 53 All over the planet, unusual children are born with an added twist to their genetic code. This X-factor allows the children to perform extraordinary feats - flight, telekinetics, laser beams from the eyes and more. One Dr. Charles Xavier gathers the children to a place where he can train them to use their powers for themselves and the forces of good he dubs these children his X-men and hijinks ensue. 54 55 Wrestler, The 56 Mickey Rourke 57 Marissa Tomei 58 Drama 59 Sport 60 2008 61 8 62 A faded professional wrestler must retire, but finds his quest for a new life outside the ring a dispiriting struggle 63 64 World's Fastest Indian, The 65 Anthony Hopkins 66 Iain Rea 67 Biography 68 Drama Page 2 input.txt Wednesday, April 14, 2021, 6:52 PM 69 2005 70 8 71 The life story of New Zealander Burt Munro, who spent years building a 1920 Indian motorcycle -- a bike which helped him set the land-speed world record at Utah's Bonneville Salt Flats in 1967. 72 73 Wonder Boys, The 74 Michael Douglas 75 Toby Maguire 76 Drama 77 Comedy 78 2000 79 8 80 An English Professor tries to deal with his wife leaving him, the arrival of his editor who has been waiting for his book for seven years, and the various problems that his friends and associates involve him in. 81 82 Wimbleton 83 Kirsten Dunst 84 Paul Bettany 85 Romantic Comedy 86 Comedy 87 2004 88 6 89 A pro tennis player has lost his ambition and has fallen in rank to 119. Fortunately for him, he meets a young player on the women's circuit who helps him recapture his focus for Wimbledon. 90 91 Wild Hogs 92 Tim Allen 93 John Travolta 94 Comedy 95 Action 96 2007 97 6 98 A group of suburban biker wannabes looking for adventure hit the open road, but get more than they bargained for when they encounter a New Mexico gang called the Del Fuegos. 99 100 White Squall, The 101 Jeff Bridges 102 Caroline Goodall 103 Drama 104 Adventure 105 1996 Page 3 input.txt Wednesday, April 14, 2021, 6:52 PM 106 6 107 Teenage boys discover discipline and camaraderie on an ill- fated sailing voyage. 108 109 White Oleander 110 Alison Lohman 111 Michelle Pfeiffer 112 Drama 113 Drama 114 2002 115 7 116 A teenager journeys through a series of foster homes after her mother goes to prison for committing a crime of passion. 117 118 White Countess, The 119 Natasha Richardson 120 Lynn Redgrave 121 Drama 122 Drama 123 2005 124 7 125 Two sisters become victims of the patriarchal, ultra-orthodox society. 126 127 Whip It 128 Ellen Page 129 Marcia Gay Harden 130 Drama 131 Sport 132 2009 133 7 134 In Bodeen, Texas, an indie-rock loving misfit finds a way of dealing with her small-town misery after she discovers a roller derby league in nearby Austin. 135 136 What Happens in Vegas 137 Ashton Kutcher 138 Cameron Diaz 139 Romantic Comedy 140 Romantic Comedy 141 2008 142 6 143 Set in Sin City, story revolves around two people who discover they've gotten married following a night of debauchery... 144 145 Wedding Singer, The 146 Adam Sandler 147 Drew Barrymore Page 4 input.txt Wednesday, April 14, 2021, 6:52 PM 148 Comedy 149 Comedy 150 1999 151 7 152 Robbie, the singer and Julia, the waitress are both engaged to be married but to the wrong people. Fortune intervenes to help them discover each other. 153 154 Wedding Crashers 155 Owen Wilson 156 Vince Vaughn 157 Comedy 158 Romantic Comedy 159 2005 160 7 161 John Beckwith and Jeremy Grey, a pair of committed womanizers who sneak into weddings to take advantage of the romantic tinge in the air, find themselves at odds with one another when John meets and falls for Claire Cleary. 162 163 Weatherman, The 164 Nicolas Cage 165 Michael Caine 166 Drama 167 Comedy 168 2005 169 7 170 A Chicago weather man (Cage), separated from his wife and children, debates whether professional and personal success are mutually exclusive. 171 172 We are Marshall 173 Matthew McConaughey 174 Matthew Fox 175 Biography 176 Sport 177 2007 178 7 179 When a plane crash claims the lives of members of the Marshall University football team and some of its fans, the team's new coach (McConaughey) and his surviving players try to keep the football program alive. 180 181 War, Inc. 182 John Cusack 183 Hilary Duff 184 Comedy 185 Action Page 5 input.txt Wednesday, April 14, 2021, 6:52 PM 186 2008 187 6 188 A political satire set in Turaqistan, a country occupied by an American private corporation run by a former US Vice- President. In an effort to monopolize the opportunities the war-torn nation offers, the corporation's CEO hires a troubled hit man, to kill a Middle East oil minister. Now, struggling with his own growing demons, the assassin must pose as the corporation's Trade Show Producer in order to pull off this latest hit, while maintaining his cover by organizing the high-profile wedding of Yonica Babyyeah an outrageous Middle Eastern pop star, and keeping a sexy left wing reporter in check. 189 190 War 191 Jet Li 192 Jason Straham 193 Action 194 Action 195 2007 196 6 197 An FBI Agent seeks vengeance on a mysterious assassin known as Rogue who murdered his partner. 198 199 Walk the Line 200 Joaquin Phoenix 201 Reese Witherspoon 202 Musical 203 Biography 204 2005 205 8 206 A chronicle of country music legend Johnny Cash's life, from his early days on an Arkansas cotton farm to his rise to fame with Sun Records in Memphis, where he recorded alongside Elvis Presley, Jerry Lee Lewis and Carl Perkins. 207 208 Waking Ned Devine 209 Ian Bannen 210 David Kelly 211 Comedy 212 Comedy 213 1998 214 7 215 When a lottery winner dies of shock, his fellow townsfolk attempt to claim the money. 216 217 Waitress 218 Keri Russell Page 6 input.txt Wednesday, April 14, 2021, 6:52 PM 219 Nathan Fillion 220 Comedy 221 Drama 222 2007 223 7 224 Jenna is a pregnant, unhappily married waitress in the deep south. She meets a newcomer to her town and falls into an unlikely relationship as a last attempt at happiness. 225 226 Volcano 227 Tommy Lee Jones 228 Anne Heche 229 Comedy 230 Action 231 1997 232 5 233 A volcano erupts in downtown L.A., threatening to destroy the city. 234 235 Visitor, The 236 Richard Jenkins 237 Haaz Sleiman 238 Drama 239 Drama 240 2007 241 8 242 A college professor travels to New York City to attend a conference and finds a young couple living in his apartment. 243 244 Valkyrie 245 Tom Cruise 246 Kenneth Branagh 247 Biography 248 Drama 249 2008 250 7 251 Based on actual events, a plot to assassinate Hitler is unfurled during the height of WWII. 252 253 Untraceable 254 Diane Lane 255 Billy Burke 256 Drama 257 Crime 258 2008 259 6 260 FBI agent Jennifer Marsh is tasked with hunting down a seemingly untraceable serial killer who posts live videos of his victims on the Internet. As time runs out, the cat and mouse chase becomes more personal.Page 7 input.txt Wednesday, April 14, 2021, 6:52 PM260 FBI agent Jennifer Marsh is tasked with hunting down a seemingly untraceable serial killer who posts live videos of his victims on the Internet. As time runs out, the cat and mouse chase becomes more personal. 261 262 Unfinished Life, An 263 Robert Redford 264 Jennifer Lopez 265 Drama 266 Drama 267 2005 268 7 269 A down on her luck woman, desperate to provide care for her daughter, moves in with her father in-law from whom she is estranged. Through time, they learn to forgive each other and heal old wounds. 270 271 Under the Tuscan Sun 272 Diane Lane 273 Sandra Oh 274 Romantic Comedy 275 Comedy 276 2003 277 7 278 While on vacation, a just-divorced writer buys a villa in Tuscany on a whim, hoping it will be the start of a change for the better in her life. 279 280 U-571 281 Matthew McConaughey 282 Harvey Keitel 283 Drama 284 Action
Answered Same DayApr 14, 2021

Answer To: Untitled input.txt Wednesday, April 14, 2021, 6:52 PM 1 Zodiac 2 Jake Gyllenhaal 3 Mark Ruffalo 4...

Pulkit answered on Apr 15 2021
125 Votes
cl/.vscode/settings.json
{
"files.associations": {
"iosfwd": "cpp",
"xstring": "cpp",
"cctype": "cpp",
"cmath": "cpp",
"concepts": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"exception": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"ios": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"memory": "cpp",
"new": "cpp",
"ostream": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"utility": "cpp",
"xfacet": "cpp",
"xiosbase": "cpp",
"xlocale": "cpp",
"xlocinfo": "cpp",
"xlocmon": "cpp",
"xlocnum": "cpp",
"xloctime": "cpp",
"xmemory": "cpp",
"xstddef": "cpp",
"xtr1common": "cpp",
"xutility": "cpp"
}
}
cl/Actor1Wrap.cpp
#include "Myheader.h"
#include "Movi
eList.h"
using namespace std;
/* This function will word wrap the leading actor's name to make sure it does
* not pass the character limit.
* ____________________________________________________________________________
* PRE-CONDITIONS
* The following parameters need to have a defined value prior to calling
* the function:
* out = Output File
* actor = The name of the Leading actor.
* maxLength = The max length of characters
* the actor's name can have.
*
* POST-CONDITIONS
* This function will not return anything.
******************************************************************************/
void MovieList::Actor1Wrap(ofstream &out, // OUT - Output File
string actor, // IN - The name of the Leading actor.
int maxLength) const // CALC - The max length of characters
// the actor's name can have.
{
string newActor;
int actorWidth;
actorWidth = 32 - front->actor1.size();
// IF statement will determine if the program should output
// the leading actor's whole name or cut off some the characters
// and instead include "..."
if (actor.size() > 19)
{
newActor = actor.substr(0, maxLength);
out << left << setw(3) << " " << setw(actorWidth - 7) << newActor << "...";
}
else if (actor.size() <= 20)
{
out << left << setw(3) << " " << setw(actorWidth) << actor;
}
}
cl/Actor2Wrap.cpp
#include "Myheader.h"
#include "MovieList.h"
void MovieList:: Actor2Wrap(ofstream &out, // OUT - Output File
string actor, // IN - The name of the Supporting actor.
int maxLength) const// CALC - The max length of characters
// the actor's name can have.
{
string newActor;
int actorWidth;
actorWidth = 25 - front->actor2.size();
// IF statement will determine if the program should output
// the supporting actor's whole name or cut off some the characters
// and instead include "..."
if (actor.size() > 19)
{
newActor = actor.substr(0, maxLength);
out << left << setw(3) << " " << setw(actorWidth - 6) << newActor << "...";
}
else if (actor.size() <= 20)
{
out << left << setw(1) << " " << setw(actorWidth) << actor;
}
}
cl/BigInFile.txt
1 Zodiac
2 Jake Gyllenhaal
3 Mark Ruffalo
4 Drama
5 Crime
6 2007
7 8
8 Based on the Robert Graysmith books about the real life
notorious Zodiac, a serial killer who terrorized San Francisco
with a string of seemingly random murders during the 1960s and
1970s.
9
10 You Don't Mess with the Zohan
cl/main.cpp
#include "Myheader.h"
#include "MovieList.h"
MovieList movies;
MovieInfo *CreateList(ifstream &inFile) // In - Input File
{
MovieInfo *perPtr;
MovieInfo *searchPtr;
bool found = false;
// Will loop until the program
// reaches NULL in the file.
while (inFile && perPtr != NULL)
{
perPtr = new MovieInfo();
getline(inFile, perPtr->title);
getline(inFile, perPtr->actor1);
getline(inFile, perPtr->actor2);
getline(inFile, perPtr->genre);
getline(inFile, perPtr->altGenre);
inFile >> perPtr->year;
inFile >> perPtr->rating;
inFile.ignore(1000, '\n');
getline(inFile, perPtr->synopsis);
string emptyLine;
getline(inFile, emptyLine);
perPtr->next = NULL;
// If statement will make sure the
//node is in alphabetical order.
if (front == NULL || front->title > perPtr->title)
{ // insert in front
perPtr->next = front;
front = perPtr;
}
else
{ // insert in middle
searchPtr = front;
while (searchPtr->next != NULL && !found)
{
if (searchPtr->next->title > perPtr->title)
found = true;
else
searchPtr = searchPtr->next;
}
// insert the node
perPtr->next = searchPtr->next;
searchPtr->next = perPtr;
}
}
return front;
}
void DisplayMenu(ofstream &out) // OUT - Output File
{
// If Statement- will make sure
// to check if the stack if empty first.
if (front == NULL)
{
cout << "\nCan" << '\'' << "t DISPLAY an empty stack!" << endl;
}
cout << "\nListing all movies!" << endl;
out << "\nCOMPLETE MOVIE LISTING" << endl;
out << "MOVIE # TITLE";
// will output and format the column
out << left;
out << setw(43) << " "
<< "YEAR";
out << setw(1) << " "
<< "RATING";
out << setw(2) << " "
<< "GENRE";
out << setw(13) << " "
<< "ALT GENRE";
out << setw(9) << " "
<< "LEAD ACTOR";
out << setw(10) << " "
<< "SUPPORTING ACTOR";
out << right << endl;
out << "------- "
<< "------------------------------------------------ "
<< "---- "
<< "------ "
<< "----------------- "
<< "----------------- "
<< "------------------- "
<< "------------------- "
<< endl;
MovieInfo *perPtr;
perPtr = front;
int counter = 0;
int genreWidth;
int altGenreWidth;
genreWidth = 23 - perPtr->genre.size();
altGenreWidth = 24 - perPtr->altGenre.size();
while (perPtr != NULL)
{
counter++;
// will make sure to output the first 10 movies
if (counter <= 10)
{
out << right << setw(4) << counter;
movies.TitleWrap(out, perPtr->title, 44);
out << right << perPtr->year;
out << setw(4) << " " << perPtr->rating;
out << left << setw(4) << " " << setw(genreWidth) << perPtr->genre;
out << left << setw(1) << " " << setw(altGenreWidth) << perPtr->altGenre;
movies.Actor1Wrap(out, perPtr->actor1, 15);
movies.Actor2Wrap(out, perPtr->actor1, 15);
out << endl;
}
perPtr = perPtr->next;
}
}
void SearchTitle(ofstream &out) // OUT - Output File
{
string search;
cout << "\nWhich title are you looking for? ";
getline(cin, search);
cout << "\nSearching for the title " << search << endl;
MovieInfo *perPtr = front;
bool found = false;
int line1Width = 10 - front->actor1.size();
int line2Width = 10 - front->actor2.size();
while (perPtr != NULL && !found)
{
if (perPtr->title == search)
{
found = true;
cout << "Found the movie " << search << "!" << endl;
// Outputting results into OFile
out << "\n************************************";
out << "***************************************\n";
out << "Title: " << perPtr->title << endl;
out << "----------------------------------------";
out << "-----------------------------------\n";
out << "Year: " << perPtr->year;
out << setw(9) << " "
<< "Rating: " << perPtr->rating << endl;
out << "----------------------------------------";
out << "-----------------------------------\n";
out << "Leading Actor: " << left << setw(26) << perPtr->actor1;
out << right << setw(line1Width) << " "
<< "Genre 1: " << perPtr->genre << endl;
out << "Supporting Actor: " << left << setw(25) << perPtr->actor2;
out << right << setw(line2Width) << " "
<< "Genre 2: " << perPtr->altGenre << endl;
out << "----------------------------------------";
out << "-----------------------------------\n";
out << "Plot: " << endl;
movies.WordWrap(out, perPtr->synopsis, 75);
out << "************************************";
out << "***************************************" << endl;
}
else
{
perPtr = perPtr->next;
}
}
if (!found)
{
cout << "Sorry, the movie \"" << search << "\" was not found." << endl;
}
}
void SearchGenre(ofstream &out) // OUT - Output File
{
MovieInfo *perPtr = front;
string search;
int counter = 0;
int genreWidth;
int altGenreWidth;
genreWidth = 23 - perPtr->genre.size();
altGenreWidth = 24 - perPtr->altGenre.size();
cout << "\nWhich genre are you looking for? ";
getline(cin, search);
cout << "\nSearching for the genre " << search << endl;
while (perPtr != NULL)
{
if (perPtr->genre == search || perPtr->altGenre == search)
{
counter++;
if (counter == 1)
{
out << "\nSearch by genre for " << search << " found:" << endl;
out << "MOVIE # TITLE";
out << left;
out << setw(43) << " "
<< "YEAR";
out << setw(1) << " "
<< "RATING";
out << setw(2) << " "
<< "GENRE";
out << setw(13) << " "
<< "ALT GENRE";
out << setw(9) << " "
<< "LEAD ACTOR";
out << setw(10) << " "
<< "SUPPORTING ACTOR";
out << right << endl;
out << "------- "
<< "------------------------------------------------ "
<< "---- "
<< "------ "
<< "----------------- "
<< "----------------- "
<< "------------------- "
<< "------------------- "
<< endl;
}
if (counter <= 10)
{
out << right << setw(4) << counter;
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here