Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

Write an equation for each hyperbola. y = x 3 3 x -3 -3F

Answered: 1 week ago