Question: IN C++ LANGUAGE ONLY . --------------------------------------------- Question 1. Write a Song Lyrics Creator program to store a list of song lyrics. The information need to

IN C++ LANGUAGE ONLY .

---------------------------------------------

Question

1. Write a Song Lyrics Creator program to store a list of song lyrics. The information need to be stored

are:

a. Song composer

b. Song title

c. Lyrics

2. The program should display menu options (refer to sample output below).

3. You may refer to program template provided as guideline.

Program template

//import libraries

struct

Song {

int line; //to show line of lyric

string text; //to store lyric

};

int

menuLyric

() {

//display menu options

//return user choice

}

void addLyric(/*necessary parameters*/) {

//add lyric to the list

}

void

update

Lyric (/*necessary parameters*/) {

//update lyric according to line no entered by user

}

void

displayLyric (/*necessary parameters*/) {

//display song title and lyrics

}

//main function

int main() {

//declaration of struct array and identifiers

//input for song composer and title

//invoke menu

//invoke necessary functions

return 0;

}NRMN SEM 2 2020/2021

Sample Output

Enter your name: Johnny

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Welcome to Song Lyrics Creator Program Johnny

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enter your song title: My Humpty Dumpty

::MENU::

[1] Add new lyric line

[2] Edit lyric

[3] Display current lyrics

[4] Exit

Enter choice: 1

Option [1] Add new lyric line

Enter your song lyric: Humpty Dumpty sat on the wall

Add more lyric line [Y to continue]: Y

Enter your song lyric: Humpty Dumpty had a great fall

Add more lyric line [Y to continue]: N

::MENU::

[1] Add new lyric line

[2] Edit lyric

[3] Display current lyrics

[4] Exit

Enter choice: 3

Option [3] Display current lyrics

Song composer: Johnny

Song title: My Humpty Dumpty

S 1 ong lyric: Humpty Dumpty sat on the wall

2 Humpty Dumpty had a great fall

::MENU::

[1] Add new lyric line

[2] Edit lyric

[3] Display current lyrics

[4] Exit

E

nter choice: 2NRMN SEM 2 2020/2021

Option [2] Edit lyric

Song lyric:

1 Humpty Dumpty sat on the wall

2 Humpty Dumpty had a great fall

Enter line no to edit: 1

New lyric: Humpty Dumpty sat on the wood

Edit other lyric line [Y to continue]: Y

Song lyric:

1 Humpty Dumpty sat on the wood

2 Humpty Dumpty had a great fall

Enter line no to edit: 2

New lyric: Humpty Dumpty had a great food

Edit other lyric line [Y to continue]: N

::MENU::

[1] Add new lyric line

[2] Edit lyric

[3] Display current lyrics

[4] Exit

Enter choice: 4

Exit program. Thank you Johnny.

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!