Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a c++ program using the following: Define a class with the following properties. a) Class name : movie b) Private variables should store years

write a c++ program using the following:

Define a class with the following properties. a) Class name : movie b) Private variables should store years of release for two movies. c) Define a function to set the years. Call the functions to set the years from the main function. d) For read function, read out which movie is the older one and which is the newer one. For eg. print out "Movie 1 is released in aaa year and Movie 2 is released in bbb year. So 1 is older than 2." e) If you want to be more creative, try to ask the movie details, names of movies and year from the user. (There are multiple submissions to this assignment. So Please complete above task, better submit it and then try to modify the code for the input from user.)

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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions