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

Problem 3) Don\'t Bore Us, Get To The Chorus Problem 1 and 2 were a warm up, now

ID: 3890640 • Letter: P

Question

Problem 3) Don't Bore Us, Get To The Chorus Problem 1 and 2 were a warm up, now lets use the strategy of breaking a line of text into two lines for a more useful purpose. We will again just do output on the console -you will not need the browser. This problem relates to part of your The demo code folder contains two pieces of example code: file read synch.js and file read asynch.js that can read the lines of a text file and return an array containing those lines. One is an example of a synchronous file read the other an example of an asynchronous file read Run both examples and study the differences in the code. You can use either for this problem but the intent really is that you use the asynchronous verison. Pay attention to where the result of console.log("Done"); appears in the output for the two examples. Can you explain the difference? Background: Many musicians, especially guitar players, rely on chord and lyric sheets to learn and play songs. A popular format is to store chords and lyrics in a text file with the chord symbols embedded within the lyrics using square brackets like this. Well E tried to make it aunday but & tGain] got so danned depressed That [A) set my sights on IE1 monday and&Gmin;] got myself undressed t ain't zeady for the alter, batcmin] do tcrmin] belLeve theze's [Anes When a [min vonas sure can [A] be a friend of IE] mine Eaus21 E) Well [E] keep on thinkin bout you sister [Gemin) golden hair surprise That just cant live without you ean't you tGrain] see it in ny eyes t've been [ one poor correlrenin|spondent, i, ve been l chin] too too [G#xin1 hard to [A] find But it [Pmin) doesn't mean you 1A] ain't been on ny IE ind [Esusz) IE et e in the middle will you [A] meet me in the [E] end B1 love me just a little just en[AJough to show you [E] care Will you [D] well i [Fgninj tried to fake it i [Gamin] don't Bind sayin i [AI just ean't make it repeat intro, then verse 2, then ehorus, then they do this doo-vop thing that sses the chozus (-A E thing This is a simplified version of what is known as chord pro format. It is a easy way to keep chords properly aligned with lyrics. Often text files in this format have a crd extention or something like that but for our purposes txt will do. When these files are displayed for the viewer, however, they are meant to be shown with the chords appearing above the lyrics as follows. Sister Golden air-America Well i eried to make it sunday but i got so danned depressed That set ny aights on monday and got nyself undreased I ain't ready for the alt r, but i do believe there's ties Eaus2 E Exercise

Explanation / Answer

please do provide the chordpro file, I am having a hard time finding it on the internet!

Code:

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