Question: Three strings are read from input and stored into list musicians. Then, three more strings are read from input and stored into list instruments. Lastly,

Three strings are read from input and stored into list musicians. Then, three more strings are read from input and stored into list instruments. Lastly, string separator_char is read from input. Output the following lines:
"Musicians", with a field width of 17, centered, and followed by '|'. Then "Instruments", with a field width of 17, centered.
34 instances of separator_char.
musicians[0], with a field width of 17, centered, and followed by '|'. Then, instruments[0] with a field width of 17, centered.
musicians[1], with a field width of 17, centered, and followed by '|'. Then, instruments[1] with a field width of 17, centered.
musicians[2], with a field width of 17, centered, and followed by '|'. Then, instruments[2] with a field width of 17, centered.

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!