FIND A SOLUTION AT Academic Writers Bay
CSCI 1010 – Programming Assignment 7Files
Gaddis – Chapter 5 – Section 11
For this assignment you will be writing a program that reads information about a sequence of tracks on an album from a file, and generates a formatted track listing with additional summary information. The input file should be namedalbuminfo.txtand have the following format:
The lines contain the lengths of each track in minutes and seconds (without leading zeros.)
The output file should be namedtracklist.txtand have the following format:
Album title:Artist:Tracks:————————————————–01 – MM:SS…XX – MM:SS————————————————–
In addition, you must display the following to the console:
Welcome to ‘s tracklist generator!Processed XX tracks.Total album length: MM:SS
Note: when displaying time information, the seconds should have leading zeros but the minutes should not.
Example Input and Output
Given the following input file:
Bows + ArrowsThe WalkmenWhat’s in It for Me2 53The Rat4 27No Christmas While I’m Talking4 30Little House of Savages3 15My Old Man4 46138th Street3 2The North Pole3 48Hang On, Siobhan3 45New Year’s Eve2 20Thinking of a Dream I Had4 33Bows + Arrows5 16
Your program should generate the following output file:
Album title: Bows + ArrowsArtist: The WalkmenTracks:————————————————–01 – What’s in It for Me 2:5302 – The Rat 4:2703 – No Christmas While I’m Talking 4:3004 – Little House of Savages 3:1505 – My Old Man 4:4606 – 138th Street 3:0207 – The North Pole 3:4808 – Hang On, Siobhan 3:4509 – New Year’s Eve 2:2010 – Thinking of a Dream I Had 4:3311 – Bows + Arrows 5:16————————————————–
It should also display the following to the console (with your actual name in place of):
Welcome to ‘s tracklist generator!Processed 11 tracks.Total album length: 42:35
Notes and Comments
The name of the file you hand in must be your last name followed byProgram7with the extension.cpp. For example, mine would becolemanProgram7.cpp.
Make sure to include comments with your name, a description of what the program does, the course (CSCI 1010), and the assignment name (Programming Assignment 7) at the beginning of your source file.
Make sure you only hand in the source file for your assignment, not the executable file, or any other files that Visual Studio creates.
Your programs must compile without errors in order to be graded. Once your program compiles make sure to test it usingmultiple test casesto see if it meets the requirements of the assig
- Assignment status: Already Solved By Our Experts
- (USA, AUS, UK & CA PhD. Writers)
- CLICK HERE TO GET A PROFESSIONAL WRITER TO WORK ON THIS PAPER AND OTHER SIMILAR PAPERS, GET A NON PLAGIARIZED PAPER FROM OUR EXPERTS
QUALITY: 100% ORIGINAL PAPER – NO PLAGIARISM – CUSTOM PAPER