Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

What is removed when a relation is converted from 1NF to 2NF?

Answered: 1 week ago

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago