Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Must be done in python and using linux mint Write a program that will build a file containing a list of musical CDs. The program
Must be done in python and using linux mint
Write a program that will build a file containing a list of musical CDs. The program will ask the user for an artist and title. The program will do this continuously until the user enters QUIT (in capital letters) for the artist. Do not ask for a CD title if QUIT is entered for the artist. Each artist and title information should be written to a data file. This means the program should ask for a name of the name before asking for the CD information. You may use raw input or the fileOpenBox method from cs160gui to get the filename. The CD information will be on a single line with the two pieces of data separated by a colon (). This might be an example of running Part 1 Enter a CD filename: CDTitles.txt Enter an artist: Zac Brown Band Enter CD title: You Get What You Give Enter an artist: AC DC Enter CD title: Back in Black Enter an artist: Jimmy Buffett Enter CD title A1A Enter an artist: QUIT The CDTitles.txt data file created might look like Zac Brown Band: You Get What You Give AC DC:Back in Black Jimmy Buffett:A1A Write a program that will build a file containing a list of musical CDs. The program will ask the user for an artist and title. The program will do this continuously until the user enters QUIT (in capital letters) for the artist. Do not ask for a CD title if QUIT is entered for the artist. Each artist and title information should be written to a data file. This means the program should ask for a name of the name before asking for the CD information. You may use raw input or the fileOpenBox method from cs160gui to get the filename. The CD information will be on a single line with the two pieces of data separated by a colon (). This might be an example of running Part 1 Enter a CD filename: CDTitles.txt Enter an artist: Zac Brown Band Enter CD title: You Get What You Give Enter an artist: AC DC Enter CD title: Back in Black Enter an artist: Jimmy Buffett Enter CD title A1A Enter an artist: QUIT The CDTitles.txt data file created might look like Zac Brown Band: You Get What You Give AC DC:Back in Black Jimmy Buffett:A1AStep 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