I may be making this overly complicated but I have had trouble trying to get thi
ID: 3842507 • Letter: I
Question
I may be making this overly complicated but I have had trouble trying to get this program to run. I have an idea of what I want it to do but I am over thinking it and I cant put it together. I just need help to start programming it. I have attached the instructions, the idea of what I want to do, and what I currently have but I just need help getting my idea to make sense. I am supposed to make a DJ playlist management program and it has to be in C++.
COURSE PROJECT INSTRUCTIONS:
Week 1: Decide on your project program, and write a brief description of what the program will do. Prepare an IPO chart for your program. Create two or three sample screens (using Word or a drawing program) depicting what your program will look like to the user (remember that these will be console-based programs).
Week 2: Create a flowchart for a simplified version of your program. Create a working version of it based on your 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.
Week 3: Add at least one conditional expression to your program.
CURRENT COURSE PROJECT INFORMATION:
Current IPO Chart:
Input: Genre, Artist, songLength, songTitle, playlistLength, playlistTitle, menu
Process: playlistLength = songLength + songLength (Up to 6 songs?)
Output : genre, artist, songLength, songTitle, playlistLength, playlistTitle
Psuedocode:
Start
Display “Hello DJ!”
Display “What would you like to do?”
Input Playlist Name(ex. Classic Rock Playlist)
Display “ Classic Rock Playlist : 52.16”
Display “What would you like to do?”
Input genre
Display “These are the songs in the Rock genre”
Display “What would you like to do?”
Input menu
Display “What would you like to do?”
Input artist
Display “The artist, White Snake, is located in the Classic Rock Playlist.”
Input menu
Display “What would you like to do?”
Input songTitle
Display “Still of the Night is by White Snake and is 6:22”
Input menu
Display “What would you like to do?”
Input playlistName
Display “TWRP playlist: 40:29”
end
CURRENT CODE SO FAR:
#include <iostream>
#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;
cout << “1. Song title.”
Cout << “2.
return 0;
}
Explanation / Answer
Start
Display “Hello DJ!”
Display “What would you like to do?”
Input Playlist Name(ex. Classic Rock Playlist)
Display “ Classic Rock Playlist : 52.16”
Display “What would you like to do?”
Input genre
Display “These are the songs in the Rock genre”
Display “What would you like to do?”
Input menu
Display “What would you like to do?”
Input artist
Display “The artist, White Snake, is located in the Classic Rock Playlist.”
Input menu
Display “What would you like to do?”
Input songTitle
Display “Still of the Night is by White Snake and is 6:22”
Input menu
Display “What would you like to do?”
Input playlistName
Display “TWRP playlist: 40:29”
end
CURRENT CODE SO FAR:
#include <iostream>
#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;
cout << “1. Song title.”
Cout << “2.
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.