Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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:A1A

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

What has been your desire for leadership in CVS Health?

Answered: 1 week ago

Question

Question 5) Let n = N and Y Answered: 1 week ago

Answered: 1 week ago

Question

5. Have you stressed the topics relevance to your audience?

Answered: 1 week ago