Placeholder

CSIS 111 Module Week 4 ASSIGNMENT CONTROL STRUCTURES WHILE FOR DO CASE

$15.00

Description

You are burning some music CDs for a party. You have arranged a list of songs in the order you want 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 out the 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.txt” (which is provided for you). The time is entered as seconds. For example, if a song takes 7 minutes and 42 seconds to play, the data entered for that song would be 462.
After all the data has been read, the application should print a message indicating the time remaining on the CD. The output must be in the form of a table with columns and headings written on a file. For example:
Note: the output converts the input from seconds to minutes and seconds. Use meaningful variable names, proper indentation, and appropriate comments. Thoroughly test the program using your own data sets.
Use meaningful variable names, proper indentation, and appropriate comments. Thoroughly test the program using the data set found in songs.txt file provided for you.
songs.txt
Submit C++ Programming Assignment 4 by 11:59 p.m. (ET) on Monday of Module/Week 4.
SCREENSHOTS
SOLUTION
PAYMENT
CSIS 111 Week 4
CSIS 111 Assignment 4
The solution includes Visual Studio project, report, screenshots.
Attachments [Move over files to preview content of those files]
CSIS_111_Week_4.zip (20.60 MB)
CSIS111-Week-4-Screenshot-1.png
CSIS111-Week-4-Screenshot.png
Firstname_Lastname_Assignment4_Report.docx
Visual Studio Project
CSIS111Assignment4
.vs
CSIS111Assignment4
v16
.suo
Browse.VC.db
ipch
AutoPCH
4ae3367347bf6703
ASSIGNMENT4.ipch
767fd40cf51b6ff3
ASSIGNMENT4.ipch
CSIS111Assignment4
Assignment4.cpp
CSIS111Assignment4.vcxproj
CSIS111Assignment4.vcxproj.filters
CSIS111Assignment4.vcxproj.user
Debug
Assignment4.obj
CSIS111A.fd5bbdb9.tlog
CSIS111Assignment4.lastbuildstate
CSIS111Assignment4.exe.recipe
CSIS111Assignment4.ilk
vc142.idb
vc142.pdb
output.txt
songs.txt
CSIS111Assignment4.sln
Debug
CSIS111Assignment4.exe
CSIS111Assignment4.pdb
Preview Assignment4.cpp
//xxxxxxxx xxxxxxxxxx
xxx xxxx()
{
//xx xxxx xxxxxxxxx xxxxx xxxxxxxxxx xxxx xxxx xxx xxx xxxxxx
xxxx << "xxxxxxxxx xxxxxxxx -- xxxxxxxxxx #4" << xxxx << xxxx; //Variable declarations int songTime[1000]; // store time in seconds int numberSongs = 0; // number of songs int remainingTime; int totalSeconds = 0; int minutes, seconds; int sum = 0; string line; ifstream input; //Program logic input.open("songs.txt"); cout << "Read data from songs.txt file:" << endl; xxxxx (xxxxxxx(xxxxx, xxxx)) { xxxxxxx = xxxx(xxxx); xxxxxxxxxxxx += xxxxxxx; xxxxxxxxxxx += 1; xxxxxxxx[xxxxxxxxxxx] = xxxxxxx; Preview output.txt xxxx xxxxxx xxxx xxxx xxxxxxx xxxx xxxx xxxxxxx xxxxx xxxx xxxxxxx xxxxx xxxx xxxxxxx ----------- ----------------- ----------------- ----------------- ----------------- 1 5 10 5 10 2 7 42 12 52 3 4 19 17 11 4 4 33 21 44 5 10 27 32 11 6 8 55 41 6 7 5 0 46 6 There are 33 minutes and 54 seconds of space left on the 80-minutes CD. xxxxx xxx 33 xxxxxxx xxx 54 xxxxxxx xx xxxxx xxxx xx xxx 80-xxxxxxx xx. Preview songs.txt 310 462 259 273 627 627 535 300 Price: $15 Buy Now Checkout Added to cart Add to Cart Checkout Added to cart You May Also Like: CSIS 111 Module Week 1 ASSIGNMENT BASIC ELEMENTS CSIS 111 Module Week 2 ASSIGNMENT INPUT OUTPUT CSIS 111 Module Week 3 ASSIGNMENT CONTROL STRUCTURES IF ELSE CSIS 111 Module Week 5 ASSIGNMENT USER DEFINED FUNCTIONS CSIS 111 Module Week 6 ASSIGNMENT USER DEFINED SIMPLE DATA TYPES STRING TYPES CSIS 111 Module Week 7 ASSIGNMENT ARRAYS CSIS 111 Module Week 8 ASSIGNMENT BATTLE SHIP GAME

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.