Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that uses a structure named MovieData to store the following information about a movie: title -a string director - a string year
Write a program that uses a structure named MovieData to store the following information about a movie: title -a string director - a string year released - an int running time - a structure production costs- a double first-year revenues-a double Include a constructur that allows all six variables of the MovieData to be specified at the time a MovieData variable is created. Also provide a structure named RunningTime which has the following information: hours-a short minutes- a short It does not need a constructor. Create at least three MovieData variables describing different movies and pass each one in turn to a function that displays the information about the movie in a clearly- formatted manner. Pass the MovieData variables to the display function by constant reference
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started