Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Must be done in python and using linux mint Part 1. Write a program to ask for a list of songs. Each entry for a

Must be done in python and using linux mint

image text in transcribedimage text in transcribed

Part 1. Write a program to ask for a list of songs. Each entry for a song will require an artist, a title and a time in minutes:seconds format. Part 1 should ask for a file name and then a series of songs until the user enters a blank artist. Do not ask the title and time when a blank artist has been entered. Write the data for each song out to the file, with each piece of information separated by a hyphen (so don't put a hyphen in the artist name or song title). A sample session of this part might be: Enter data file name: playlistl.txt Enter the artist, enter ""to quit: Artist: Jimmy Buffett Title: Cheeseburgers in Paradise Time: 4 12 Enter the artist, enter "" to quit: Artist: Bob Marley Title: No Woman Cry Time: 3:40 Arter the artist, enter r to quit: After the above session the contents of playlist1.txt would be: Jimmy Buffett-Cheeseburgers in Paradise-4:12 Bob Marley-No Woman Cry-3:40 Part 1. Write a program to ask for a list of songs. Each entry for a song will require an artist, a title and a time in minutes:seconds format. Part 1 should ask for a file name and then a series of songs until the user enters a blank artist. Do not ask the title and time when a blank artist has been entered. Write the data for each song out to the file, with each piece of information separated by a hyphen (so don't put a hyphen in the artist name or song title). A sample session of this part might be: Enter data file name: playlistl.txt Enter the artist, enter ""to quit: Artist: Jimmy Buffett Title: Cheeseburgers in Paradise Time: 4 12 Enter the artist, enter "" to quit: Artist: Bob Marley Title: No Woman Cry Time: 3:40 Arter the artist, enter r to quit: After the above session the contents of playlist1.txt would be: Jimmy Buffett-Cheeseburgers in Paradise-4:12 Bob Marley-No Woman Cry-3:40

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions