Computers and Technology
Computers and Technology, 08.05.2021 19:00, rk193140

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:00, kamilahmcneil3969
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
image
Computers and Technology, 22.06.2019 09:00, sabahfayaskhan
Which best describes the condition under which the unicode output is the same as plain text?
Answers: 3
image
Computers and Technology, 23.06.2019 11:30, leapfroggiez
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
image
Computers and Technology, 24.06.2019 23:30, jinkiesandrosie
Game design colleges anyone know the requirements? ?
Answers: 1
Do you know the correct answer?
A music producer hosts four daily music events (one for Rock music, one for Jazz music, one for Hip...

Questions in other subjects:

Konu
Mathematics, 30.01.2021 05:30
Konu
History, 30.01.2021 05:30