Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Alright, this is my first question in the Computer sciencesection. I was asked t

ID: 3617492 • Letter: A

Question

Alright, this is my first question in the Computer sciencesection. I was asked to write three programs I got 2 out of 3 donebut am having trouble with one. You are burning some music cd's for a party you've arranged alist of songs in the order in which you want them to play them.However, you would like to maximize your use of space on the CD,which holds 80 minutes of music. To do so, you want to figure outthe total time for a group of songs and see how well they fit.Write a design and a C++ program to help you accomplish this task.The data are on file songs.dat. The time is entered as seconds. Forexample, if a song takes 7 minutes and 42 seconds to play, the dataentered for that would be 462. After all the data has been read, the application should printa message indicating the time remaining on the CD. The outpute should be in the form of a table with columns andheadings written on a file. For example: Song                Song         Time                                 Total      Time Number      Minutes         Seconds                        Minutes      Seconds --------        --------         ---------                       --------      ---------- 1                           5                   10                              5               10 2                           7                   12                             12              52 5                           4                   19                             17              11 3                           4                   33                             21              44 4                          10                  27                            32              11 6                          8                   55                             41               6 7                           5                     0                             46               6 Note that the output converts the input from seconds tominutes and seconds. Use only meaningful variable names, properindentation, and appropriate comments. Thoroughly test the programusing your own data sets. I realize its alot to ask to just up an write the wholeprogram, but I wrote a similar inData and outData file in myprevious program but no math and conversions were necessary. Alright, this is my first question in the Computer sciencesection. I was asked to write three programs I got 2 out of 3 donebut am having trouble with one. You are burning some music cd's for a party you've arranged alist of songs in the order in which you want them to play them.However, you would like to maximize your use of space on the CD,which holds 80 minutes of music. To do so, you want to figure outthe total time for a group of songs and see how well they fit.Write a design and a C++ program to help you accomplish this task.The data are on file songs.dat. The time is entered as seconds. Forexample, if a song takes 7 minutes and 42 seconds to play, the dataentered for that would be 462. After all the data has been read, the application should printa message indicating the time remaining on the CD. The outpute should be in the form of a table with columns andheadings written on a file. For example: Song                Song         Time                                 Total      Time Number      Minutes         Seconds                        Minutes      Seconds --------        --------         ---------                       --------      ---------- 1                           5                   10                              5               10 2                           7                   12                             12              52 5                           4                   19                             17              11 3                           4                   33                             21              44 4                          10                  27                            32              11 6                          8                   55                             41               6 7                           5                     0                             46               6 Note that the output converts the input from seconds tominutes and seconds. Use only meaningful variable names, properindentation, and appropriate comments. Thoroughly test the programusing your own data sets. I realize its alot to ask to just up an write the wholeprogram, but I wrote a similar inData and outData file in myprevious program but no math and conversions were necessary.

Explanation / Answer

please rate - thanks sorry if it's late. It got lost in my bookmarks #include #include    int main()    {char filename[30];    int totmin=0,totsec=0,min,sec,num,i=1,total,extra;     coutfilename;    ifstream input;   input.open(filename);          //open file   if(input.fail())            //is it ok?        { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote