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:

C++ 14.3 Movie Data : Sort Array of Structs Extend the program

THANK YOU

This is the question from my class. Thank you
code in C++ 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

Director Larry Cosca Steven King The Funny Kids Steven Shpeelberg E F Coppola Recursive Robert Title The Pond The Shining Year Released 1967 1980 1990 2001 2010 Running Time 183 190 200 212 220 Mary Poppins Inception zyBooks 14.3 Movie Data : Sort Array of Structs 2 Extend the program that creates an array of struct named movieData to sort the array and then print as the key. A bubble sort method called bubbleSort needs to be added that takes the array as a parar Title Director Year Released Running time (in minutes) nclude a default constructor and an overloaded constructor that allows all four of these member dat a MovieData variable is created zyBooks 2 The program should create five MovieData variables and store them in an array of structs. The size o SIZE It should pass the array to a function that displays information about the movies in a formatted way void printBanner coutsetw(20)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!