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, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
Match the following. 1. formatting that is applied when cell data meets certain criteria 2. borders with formats not found on the border tool 3. a shortcut bar that contains tools for commonly used formats 4. formats that can be applied to numbers conditional formatting custom borders format bar number formats
Answers: 3
question
Computers and Technology, 25.06.2019 02:30
What group of plants produce fruit? question 2 options: gymnosperms nonvascular plants seedless vascular plants angiosperms
Answers: 1
question
Computers and Technology, 25.06.2019 09:30
Which of the following is a reason to include the people who will be using the new technology in conversations about technology upgrades for a business? a. the users would likely know if an upgrade would be necessary or even useful. b. the users would know more about the software than people in the it department. c. the users will be paying for the upgrades with their own money. d. the users will assume the upgrade will cause a drop in productivity.
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
Mathematics, 14.04.2020 04:31