Question
C# ( Programming Poetry) Author Hans Christian Anderson wrote the following famous poem: To move, to breathe, to fly, to float, To gain all while
C#
(Programming Poetry) Author Hans Christian Anderson wrote the following famous poem:
To move, to breathe, to fly, to float, To gain all while you give, To roam the roads of lands remote, To travel is to live.
Write an app that encodes that poem as a jagged array. Each row should be one line of the poem and each element should be one word of the poem. Notice how each line has a different number of words. This is why a jagged array is necessary. Your app should do the following:
Create and initialize the jagged array to the poem text.
Display the 4th word on the 1st line of the poem to the screen using the proper indices.
Display the entire poem to the screen by iterating over the array word-by-word.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started