13.3 MP3 Shuffler, v.1
Programming
?Exercise
?13.3
?
MP3 Shuffler, v.1.0
Purpose. The purpose is for you to demonstrate that you have mastered arrays, array-based lists,
and searching.
Requirements. Write a program named mp3Shuffler1.cpp, to read all song titles from a text file,
and randomly select and output titles in a loop until the user wishes to stop. Here are some detailed
specifications:
1. The song titles are to be stored in an input text file named songs.txt, one name per line.
2. Allow up to 200 song titles. Stop reading the file after the end-of-file is reached, or the 200th
song title is added and the list reaches its capacity.
In a loop, prompt the user to ¡°play a song [Y/N]?¡±. If the reply is N (or n), exit the loop and let the
program end. If the reply is Y (or y), randomly choose a number for the index of the song title in the
list to play. Print the song title, and repeat to the top of the loop.
Program I/O. Input: user enters Y to ¡°play¡± a song, or N to exit. Output: a song title console screen, in
response to every Y from the user.
Example. Your program's console I/O should look something like this, with user input in blue:
play a song [Y/N]?: y
Hey Jude
play a song [Y/N]?: y
Imagine
play a song [Y/N]?: y
Johnny B. Goode
play a song [Y/N]?: y
Respect
play a song [Y/N]?: y
Good Vibrations
play a song [Y/N]?: y
Johnny B. Goode
play a song [Y/N]?: n
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- song titles for young singers sweet adelines
- titles from free response questions updated from an original weebly
- composing an effective title yale university
- 13 3 mp3 shuffler v 1
- basic research articles with short titles describing the results are
- exam question on scarlet song free pdf books
- finish the song titles quiz
- ap style cheat sheet university of oregon
- exam question on scarlet song pdf free download
- generating question titles for stack overflow from mined code snippets
Related searches
- minecraft v 1 12 2 download free
- log 3 2cos 2x 3cosx 1 1
- 208v 3 phase vs 208v 1 phase
- 3 phase power vs 1 phase power
- mark 1 1 13 commentary
- 1 v v calculator
- 3 0 ah vs 1 5 ah
- 3 x 4 x 1 0
- 1 john 3 1 3 nrsv
- 13 3 white blood cell count
- discover 1 2 3 4 checking 1 2 3 4 account
- discover 1 2 3 4 checking 1 2 3 4 account 1 2