Question
C++ 14.3 Movie Data : Sort Array of Structs Extend the program that creates an array of struct named movieData to sort the array and
C++
14.3 Movie Data : Sort Array of Structs
Extend the program that creates an array of struct named movieData to sort the array and then print it. Use the running time of the movie as the key. A bubble sort method called bubbleSort needs to be added that takes the array as a parameter.
Title
Director
Year Released
Running time (in minutes)
Include a default constructor and an overloaded constructor that allows all four of these member data values to be specified at the time
a MovieData variable is created.
The program should create five MovieData variables and store them in an array of structs. The size of the array should be a constant called SIZE.
It should pass the array to a function that displays information about the movies in a formatted way (given to you ).
void printBanner(){
cout
}
The output should look like this:
THANK YOU
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