subject

A music producer hosts four daily music events (one for Rock music, one for Jazz music, one for Hip Hop music, and one for Country music), and then stores the profit numbers for these events a Python list. The profit numbers are expressed as a whole number of dollars, and will be positive if the event made money, and negative if it lost money. Here is how the list is organized:

the profit numbers for Rock music events will be in the 1st, 5th, 9th, 13th, etc. positions
the profit numbers for Jazz music events will be in the 2nd, 6th, 10th, 14th, etc. positions
the profit numbers for Hip Hop music events will be in the 3rd, 7th, 11th, 15th, etc. positions
the profit numbers for Country music events will be in the 4th, 8th, 12th, 16th, etc. positions

Write the header and body of a Python secondary function named createProfitReport that receives as a parameter a list of profit numbers as described above, and then outputs a report that displays the profit numbers of those events that did not lose money.

You should not make any assumptions about how many profit numbers are stored in the list. The profit numbers for each music type should be displayed on a separate line. The displayed profit numbers should be right-justified in columns that are 8 spaces wide. The profit numbers should align with those on the lines above and below.

Your Python code should not perform any user input. You should not write any part of a Python program other than this secondary function header and body.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
Amara created a workbook to track the number of minutes she reads each week. each day, she entered the number of minutes into the workbook. identify the types of data in the workbook using the drop-down menus.
Answers: 3
question
Computers and Technology, 23.06.2019 01:40
Writing a modular program in visual c++. i am new to this and not sure what i am missing. i am getting the following error: baddate.cpp: in function ‘int main()’: baddate.cpp: 50: 3: error: ‘else’ without a previous ‘if’elsehere are the instructions and code: writing a modular program in c++in this lab, you add the input and output statements to a partially completed c++ program. when completed, the user should be able to enter a year, a month, and a day. the program then determines if the date is valid. valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31.notice that variables have been declared for you.write the simulated housekeeping() function that contains the prompts and input statements to retrieve a year, a month, and a day from the user.include the output statements in the simulated endofjob() function. the format of the output is as follows: month/day/year is a valid date.ormonth/day/year is an invalid date.execute the program entering the following date: month = 5, day = 32, year = 2014. record the output of this program.execute the program entering the following date: month = 9, day = 21, year = 2002. record the output of this /* program name: baddate.cppfunction: this program determines if a date entered by the user is valid.input: interactiveoutput: valid date is printed or user is alerted that an invalid date was entered*/#include bool validatedate(int, int, int); using namespace std; int main(){// declare variablesint year; int month; int day; const int min_year = 0, min_month = 1, max_month = 12, min_day = 1, max_day = 31; bool validdate = true; // this is the work of the housekeeping() method// get the year, then the month, then the daycout< < "enter the year"< > year; cout< < "enter the month"< > month; cout< < "enter the day"< > day; // this is the work of the detailloop() method// check to be sure date is validif(year < = min_year) // invalid yearvaliddate = false; else if (month < min_month || month > max_month) // invalid monthvaliddate = false; else if (day < min_day || day > max_day) // invalid dayvaliddate = false; // this is the work of the endofjob() method// test to see if date is valid and output date and whether it is valid or notif(validdate == true); {// output statementcout<
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
You know the right answer?
A music producer hosts four daily music events (one for Rock music, one for Jazz music, one for Hip...
Questions
question
Social Studies, 03.04.2020 21:32
question
Biology, 03.04.2020 21:33
Questions on the website: 13722360