Prince Macaw is flying here and there and searching for food. Her Princess is waiting for him at home. But he stopped when he was flying near Shahbag. He saw millions of people gathered there for only one demand- death sentence of war crimes. They were giving slogans. If you are not familiar with slogans let me tell you, slogan has two parts. One part of the slogan is yelled by the leader and the rest part is chorused from the mass people. For example, when the leader says other say "padma meghna jomuna". Some of the slogans are listed below- "tomar amar thikana" then First Line Second Line tui rajakar tui rajakar garo chakma bangali ko te kader molla tumi ke ami ke Prince also joined with this mass people. When it was too late, Princess got worried about Prince. So she also went out. After some while, she found Prince on a tree at Shahbag yelling slogans in strong voice. Instead of getting mad, Princess asked Prince what are the slogans. So Prince told her a few slogans, first line and corresponding second line. So Princess got prepared. Given the list of the slogans and also the first lines Princess going to hear, print out the second line of the slogans.
Prince Macaw is flying here and there and searching for food. Her Princess is waiting for him at home. But he stopped when he was flying near Shahbag. He saw millions of people gathered there for only one demand- death sentence of war crimes. They were giving slogans. If you are not familiar with slogans let me tell you, slogan has two parts. One part of the slogan is yelled by the leader and the rest part is chorused from the mass people. For example, when the leader says other say "padma meghna jomuna". Some of the slogans are listed below- "tomar amar thikana" then First Line Second Line tui rajakar tui rajakar garo chakma bangali ko te kader molla tumi ke ami ke Prince also joined with this mass people. When it was too late, Princess got worried about Prince. So she also went out. After some while, she found Prince on a tree at Shahbag yelling slogans in strong voice. Instead of getting mad, Princess asked Prince what are the slogans. So Prince told her a few slogans, first line and corresponding second line. So Princess got prepared. Given the list of the slogans and also the first lines Princess going to hear, print out the second line of the slogans.
New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter3: Designing A Page Layout: Creating A Website For A Chocolatier
Section3.2: Visual Overview: Page Layout Grids
Problem 6QC
Related questions
Question
Please solve this question using c++ language.
![Prince Macaw is flying here and there and searching for food. Her Princess is waiting for him at home.
But he stopped when he was flying near Shahbag. He saw millions of people gathered there for only one
demand- death sentence of war crimes. They were giving slogans. If you are not familiar with slogans
let me tell you, slogan has two parts. One part of the slogan is yelled by the leader and the rest part
is chorused from the mass people. For example, when the leader says
other say "padma meghna jomuna". Some of the slogans are listed below-
"tomar amar thikana" then
First Line
Second Line
tui rajakar tui rajakar
garo chakma bangali
ko te kader molla
tumi ke ami ke
Prince also joined with this mass people. When it was too late, Princess got worried about Prince.
So she also went out. After some while, she found Prince on a tree at Shahbag yelling slogans in strong
voice. Instead of getting mad, Princess asked Prince what are the slogans. So Prince told her a few
slogans, first line and corresponding second line. So Princess got prepared. Given the list of the slogans
and also the first lines Princess going to hear, print out the second line of the slogans.
Input
First line contains number of slogans, N (0 <N< 20) Prince is going to teach Princess. Hence follows
N pairs of lines. First line of the pair contains first line of a slogan and the second line of the pair
is corresponding second line of the slogan. Then another positive integer Q will be given (Q < 100).
Hence follows Q lines. Each line contains first line of a slogan. You may assume that the slogans will
contain lower case English alphabet and/or space. Both the lines of slogan will contain at least one
alphabet. No two first lines in the Princes slogan list will be same. Each slogan will be at most 100
characters long. All of the query first line will be in Princes list.
Output
For each of the first line of the slogan, you need to print out corresponding second line.
Sample Input
3
ko te kader molla
tui rajakar tui rajakar
tumi ke ami ke
garo chakma bangali
jalo re jalo
agun jalo
2
jalo re jalo
ko te kader molla
Sample Output
agun jalo
tui rajakar tui rajakar](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F85a38cde-b3ae-4094-815b-bb39959ca823%2F8f3b5b9c-c461-49b1-9b1b-4f6b2fc47607%2Fwxuvmz_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Prince Macaw is flying here and there and searching for food. Her Princess is waiting for him at home.
But he stopped when he was flying near Shahbag. He saw millions of people gathered there for only one
demand- death sentence of war crimes. They were giving slogans. If you are not familiar with slogans
let me tell you, slogan has two parts. One part of the slogan is yelled by the leader and the rest part
is chorused from the mass people. For example, when the leader says
other say "padma meghna jomuna". Some of the slogans are listed below-
"tomar amar thikana" then
First Line
Second Line
tui rajakar tui rajakar
garo chakma bangali
ko te kader molla
tumi ke ami ke
Prince also joined with this mass people. When it was too late, Princess got worried about Prince.
So she also went out. After some while, she found Prince on a tree at Shahbag yelling slogans in strong
voice. Instead of getting mad, Princess asked Prince what are the slogans. So Prince told her a few
slogans, first line and corresponding second line. So Princess got prepared. Given the list of the slogans
and also the first lines Princess going to hear, print out the second line of the slogans.
Input
First line contains number of slogans, N (0 <N< 20) Prince is going to teach Princess. Hence follows
N pairs of lines. First line of the pair contains first line of a slogan and the second line of the pair
is corresponding second line of the slogan. Then another positive integer Q will be given (Q < 100).
Hence follows Q lines. Each line contains first line of a slogan. You may assume that the slogans will
contain lower case English alphabet and/or space. Both the lines of slogan will contain at least one
alphabet. No two first lines in the Princes slogan list will be same. Each slogan will be at most 100
characters long. All of the query first line will be in Princes list.
Output
For each of the first line of the slogan, you need to print out corresponding second line.
Sample Input
3
ko te kader molla
tui rajakar tui rajakar
tumi ke ami ke
garo chakma bangali
jalo re jalo
agun jalo
2
jalo re jalo
ko te kader molla
Sample Output
agun jalo
tui rajakar tui rajakar
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning