Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given: struct Composer { string First; string Last; }; struct Label { int Catalo

ID: 3658684 • Letter: G

Question

Given:

struct Composer
{
string First;
string Last;
};
struct Label
{
int CatalogNumber;
string Name;
};

struct DateData
{
int RecordingYear;
int ReleaseYear;
};

{
Composer ctrack;
Label ltrack;
string Film;
};

const int ARRAY_SIZE=50;

struct Soundtrack

{

int A[ARRAY_SIZE);

Composer ctrack;
Label ltrack;
string Film;
};


1. Assign the following values to the first 2 elements in the Soundtrack array:


Field Name Value Set 1 Value Set 2
First Miklos Elmer
Last Rozsa Bernstein
Catalog Number 72197 VCL 8124
Recording Year 1959 1963
Release Year 1996 2004
Name Rhino Varese Sarabande
Film Ben-Hur The Great Escape


2. Create a function to display all the data in

the Soundtrack array.


3. Write a function call to the function

you created.

Explanation / Answer

1) ctrack.First = Miklos Elmer; ctrack.Last = Rozsa Bernstein; ltrack.CatalogNumber = 72197; ltrack.Name = Rhino Varese Sarabande; DateData obj; obj.RecordingYear = 1959; obj.ReleaseYear = 1996; Flim = Ben-Hur The Great Escape; 2) void disp() { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote