Question: So I am attempting to write a DJ program that allows me to do some small functions. I may be making this more complicated than

So I am attempting to write a DJ program that allows me to do some small functions. I may be making this more complicated than I need to and I need some help on figuring out how to get it to work.

This is the current weekly assignment.

Create a working version of your program based on the flowchart. This should be a working program that accepts user input, does some calculation, and shows the results. It does not have to use conditional expressions, loops, and the like.For a DJ manager, it asks for the average song length and the number of songs on a playlist, and it displays the length of the playlist.

and this is my course project overall if it helps any;

DJ Playlist Manager: You will develop a program for a DJ. The DJ needs to be able to enter data about his or her music collection, such as title, artist, length, genre, and so on. The user should be able to create individual playlists from a subset of the entire music collection. A report should be available showing the songs on a particular playlist, as well as their total length and average song length. There should also be a report showing the names of all the playlists and the total length of each playlist

And lastly, here is the code that I have so far. I would write a flow chart but again, I think I am over complicating it.

#include #include "stdafx.h" using namespace std; int main() { //Declare variables string playlist1;; constant rock1 = 2.52; constant rock2 = 3.43; constant rock3 = 4.57; constant rock4 = 6.22; real playlist1Length; real songLengthAvg1;

cout << "Welcome to the DJ playlist program. "; cout << "Please enter the name of the playlist you would like to see: "; cin >> playlist1; playlist1Length = rock1 + rock2 + rock3 + rock4 cout << "This is the " << playlist1 << "and the length is : " << playlist1Length; songLengthAvg1 = (rock1 + rock2 + rock3 + rock4) / 4 cout << "The average song length in this playlist is: " << songLengthAvg;

return 0;

}

I only did a small part so far because of all of the errors but hopefully I can get help understanding how to format my ideas better and organize this project in a better way.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!