Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

THANK YOU

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

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxxviii Special Issue On Database And Expert Systems Applications Lncs 11250

Authors: Abdelkader Hameurlain ,Roland Wagner ,Sven Hartmann ,Hui Ma

1st Edition

3662583836, 978-3662583838

More Books

Students also viewed these Databases questions

Question

How effective will the strategy be in addressing the trigger?

Answered: 1 week ago

Question

design a simple performance appraisal system

Answered: 1 week ago