Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There is a file of a few movies that contains the following data: Date of release Movie name Production cost Gross profit Your assignment is:

There is a file of a few movies that contains the following data:
Date of release
Movie name
Production cost
Gross profit
Your assignment is: for each movie,
1. Without changing the data, read in the Date of release,
the Movie name, the Production cost and the Gross profit
for all of the movies and put the information into an array of structs (or classes).
2. Sort the array of movies by Movie Name alphabetically
3. Print the array of movies with a heading.
The fields should be printed in the following order:
Movie Name, Release Date, Production cost and Gross profit
4. Sort the array of movies by Percent Profit (Gross profit/Production Cost)
3. Print the array of movies with a heading.
The fields should be printed in the following order:
Movie Name, Production cost, Release Date and Percent Profit
The picture is the input file. Everything has to be written in C++
image text in transcribed
Release Date Production Budget Dec 15, 1939 $3,900,000 Jun 4, 1982 $10,700,000 Feb 9, 2001 $87,000,000 Mar 23, 2001 $38,000,000 Aug 3, 2001 $26,000,000 Jun 14, 2002 $115,000,000 Mar 14, 2003 $25,000,000 Apr 15, 2005 $18,500,000 Mar 16, 2007 $20,000,000 Feb 22, 2008 $12,000,000 Dec 25, 2008 90,000,000 Jun 12, 2009 110,000,000 Jul 8, 2011 Movie Gone with the Wind Poltergeist Hannibal Heartbreakers Original Sin Windtalkers Agent Cody Banks The Amityville Horror Premonition Charlie Bartlett Valkyrie The Taking of Pelham 123 Zookeeper The Girl with the Dragon Worldwide Box Office $390,525,192 $121,706,019 $350,100,000 $57,753,825 $16,521,410 77, 628,265 $58,240,458 $108,800,304 $81,461,343 $5,295,909 $203,902,107 152,364,370 $170,805,525 80,000,000 Dec 20, 2011 Tattoo $239,373,970 Mar 16, 2012 $42,000,000 Aug 8, 2012 90,000,000 21 Jump Street $202,812,429 $115,849,781 $1,110,526,981 30,000,000 Nov 8, 2012 200,000,000 Dec 14, 2012 Journey $1,017,003,568 Jan 25, 2013 Hunters $214,949,716 Skyfall The Hobbit: An Unexpected $250,000,000 Hansel&Gretel: Witch $50,000,000 G.I. Joe: Retaliation Carrie 22 Jump Street The Hobbit: The Battle of 371,923,060 $82,409,520 $331,333,876 $140,000,000 Oct 18, 2013 30,000,000 Jun 13, 2014 $50,000,000 Dec 17, 2014 the 5 Armies $250,000,000 $955,119,788 Feb 20, 2015 $14,000,000 May 8, 2015 $35,000,000 Hot Tub Time Machine 2 $12,452,601 Hot Pursuit $45,680,201

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

Describe an auditors review of financial statements.

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago