Find Jobs
Hire Freelancers

c programmer

€8-30 EUR

Mbyllur
Postuar about 3 years ago

€8-30 EUR

Paguhet në dorëzim
I need a software engineer who can create a program that produces a randomised set of songs from a longer list entered as input. The program takes its input from a file specified as an argument to the program. If the file does not exists or is not readable, the program prints out an error message to this effect. If no file is specifed, the program searches in the current directory for a file called artistes+songs.txt. If no such file exists, the program prints a message “No file found.” and then prompts the user to enter the artistes and songs information from the keyboard according to the specified format. The format of the file is as follows: Artiste name Song title***Song duration Song title***Song duration ... Song title***Song duration <blank line> Artiste name Song title***Song duration Song title***Song duration The program should then generate a random playlist of the songs given as input, according to the following constraints: • An artiste cannot have more than two songs in a row (so no “triple play”, as the radio DJs might say); • An artiste cannot have more than three songs in total in the playlist; • A song cannot appear twice in the playlist; • The total playlist length should be as close as possible to one hour. Specifically, the last song must start on or before 59:59. The randomised playlist and the total time should be printed out in the following format: Randomised playlist Artiste name: "Song title" (Song duration) Artiste name: "Song title" (Song duration) ... Artiste name: "Song title" (Song duration) Total duration: <Total duration>. Example An example input file is as follows: The National Fireproof***2:58 Hard to Find***4:13 England***5:40 Son***5:20 Light Years***3:32 Lean***4:31 The System Only Dreams in Total Darkness***3:56 Arcade Fire Rebellion (Lies)***5:10 Wake Up***5:39 Cold Wind***3:12 Neighborhood #1 (Tunnels)***4:48 Neighborhood #3 (Power Out)***5:12 The War on Drugs Under the Pressure***8:51 Red Eyes***4:58 Sufjan Stevens Go! Chicago! Go! Yeah!***6:04 Chicago [To String Remix]***5:32 Carrie & Lowell***3:14 John My Beloved***5:03 London Grammar Wasting My Young Years***3:24 Strong [Hackman remix]***5:13 Jos Gonzlez Heartbeats***2:40 Bon Iver 29 #Strafford APTS***4:05 00000 Million***3:53 re: Stacks***6:40 Future Islands Tin Man***3:14 Seasons (Waiting on You)***3:46 Grease***4:35 Spirit***4:22 Public Service Broadcasting They Gave Me A Lamp***3:56 The Other Side***6:20 Go!***4:13 The sorted input would be as follows: Sorted list of artistes and songs Arcade Fire o Cold Wind***3:12 o Rebellion (Lies)***5:10 o Neighborhood #1 (Tunnels)***4:48 o Neighborhood #3 (Power Out)***5:12 o Wake Up***5:39 Bon Iver o 00000 Million***3:53 o 29 #Strafford APTS***4:05 o re: Stacks***6:40 o Heartbeats***2:40 London Grammar o Strong [Hackman remix]***5:13 o Wasting My Young Years***3:24 Public Service Broadcasting o Go!***4:13 o The Other Side***6:20 o They Gave Me A Lamp***3:56 Sufjan Stevens o Carrie & Lowell***3:14 o Chicago [To String Remix]***5:32 o Go! Chicago! Go! Yeah!***6:04 o John My Beloved***5:03 The National o England***5:40 o Fireproof***2:58 o Hard to Find***4:13 o Lean***4:31 o Light Years***3:32 o Son***5:20 o The System Only Dreams in Total Darkness***3:56 The War on Drugs o Red Eyes***4:58 o Under the Pressure***8:51 An example randomised playlist would be the following: Randomised playlist Public Service Broadcasting: "They Gave Me A Lamp" (3:56) The War on Drugs: "Under the Pressure" (8:51) Future Islands: "Spirit" (4:22) Arcade Fire: "Cold Wind" (3:12) The National: "England" (5:40) Bon Iver: "re: Stacks" (6:40) Sufjan Stevens: "Chicago [To String Remix]" (5:32) Jos Gonzlez: "Heartbeats" (2:40) Public Service Broadcasting: "The Other Side" (6:20) Public Service Broadcasting: "Go!" (4:13) Arcade Fire: "Rebellion (Lies)" (5:10) London Grammar: "Wasting My Young Years" (3:24) Total duration: 60:00.
ID e Projektit: 29612842

Rreth projektit

7 propozime
Projekt në distancë
Aktive 3 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
7 freelancers are bidding on average €35 EUR for this job
Avatari i Përdoruesit
Hi there, I do C programming. I went through your requirements and I would like to do this project if given the opportunity. Let me know if you are interested.
€30 EUR në 1 ditë
5,0 (545 përshtypje)
7,2
7,2
Avatari i Përdoruesit
I am very good with C, and can write your song shuffling program in a few hours time. Contact me with details.
€30 EUR në 1 ditë
4,9 (423 përshtypje)
7,4
7,4
Avatari i Përdoruesit
HI..i am proficient in C/C++ programming with data structures, algorithms, file IO and can help you complete the program as a console based as per given specs.
€50 EUR në 2 ditë
4,9 (178 përshtypje)
6,5
6,5
Avatari i Përdoruesit
Hi I have done many c and c++ projects. Kindly contact to share more details about your project in chat. Thank you
€30 EUR në 7 ditë
5,0 (52 përshtypje)
6,4
6,4
Avatari i Përdoruesit
Hi there, I have read your project description and I am confident about your project I can do perfectly. Please leave a message on my chat so we can discuss the budget and deadline of the project. Thanks. regard , faizan
€40 EUR në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
I am having 30 years of programming in c/C++ on various platform like Unix, VAX, Linux and windows. I can write this for you.
€50 EUR në 7 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Hi, I have read about the mention task and pretty much interested in the project as I am experienced in the same field and much confident in it, Thanks.
€15 EUR në 7 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i IRELAND
Dublin, Ireland
0,0
0
Anëtar që nga mar 18, 2021

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.