A matrix player_data contains information about a group of football players. Their shirt number, salary (dollars...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A matrix player_data contains information about a group of football players. Their shirt number, salary (dollars per week) and current playing time are contained in rows 1, 2 and 3, respectively. For example, player_data = [1, 5, 7, 9, 10, 11; ... 3300, 15000, 2000, 4560, 5000, 7000; ... 180, 70, 180, 160, 65, 20] Write a code that generates the shirt numbers of the players who satisfy the following conditions: Play more than 20 minutes. Earn more than 2000 dollars per week. Note: Do NOT hardcode as your code should work for a matrix with any number of players and with different values. Copy and paste your code below. Paste as plain text (Ctrl+Shift+V) if normal paste (Ctrl+V) doesn't work. A matrix player_data contains information about a group of football players. Their shirt number, salary (dollars per week) and current playing time are contained in rows 1, 2 and 3, respectively. For example, player_data = [1, 5, 7, 9, 10, 11; ... 3300, 15000, 2000, 4560, 5000, 7000; ... 180, 70, 180, 160, 65, 20] Write a code that generates the shirt numbers of the players who satisfy the following conditions: Play more than 20 minutes. Earn more than 2000 dollars per week. Note: Do NOT hardcode as your code should work for a matrix with any number of players and with different values. Copy and paste your code below. Paste as plain text (Ctrl+Shift+V) if normal paste (Ctrl+V) doesn't work.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
When a company's bookkeeper started to prepare the monthly bank reconciliation, the cash account showed a balance of P528.600. At the end of the month, the following information was available from...
-
The stockholders' equity section of The Seventies Shop is presented here. THE SEVENTIES SHOP Balance Sheet (partial) ($ in thousands) Stockholders' equity: Preferred stock, $50 par...
-
Create a Web page named remainder.html that contains a text box and a button. When the button is clicked, JavaScript statements should (1) access the number entered in the text box, (2) calculate the...
-
Analyze the relationship between women's rights, culture, and national prosperity.
-
The following represents the financial information for Trovatore Corporation, a manufacturer of electronic components, for two months: Required a. Classify these items into prevention (P), appraisal...
-
Cue balls on coin operated billiard tables are either larger than the numbered balls or are magnetic. This allows them to be returned for play in the event they are accidentally pocketed (i.e.,...
-
You are called by the daughter of an elderly woman who lives alone. The daughter lives in another city and is concerned because her mother does not drive and has seemed unhappy and listless on the...
-
Calculate the vertical displacement Sc (vertical)] of point C of the frame whose load and dimensions are given in the figure. (EI= constant) 50 kN/m A 4 EI * 8 EI 4m 0 8 El 4 m 4 EI B 3 m 6 m
-
Why is it said that investment risk is borne by the employer in a DB plan and a worker in a DC plan? Why might employers favor DC plans over DB plans? Which plan requires the greater level of...
-
How would longer life expectancies affect the pricing of life insurance policies? Annuities?
-
What is the difference between a spot and a forward exchange transaction? In what category does a foreign exchange swap appear?
-
How might an announced single goal of an inflation target help to achieve that objective? What would be the consequences for output and unemployment? In practice, how would you characterize...
-
How do large institutional investors affect the transmission of monetary policy? How would they respond to information indicating that the central bank was about to pursue a more accommodative...
-
2. a. What do you mean by sewage treatment? b. Briefly discuss the categories/steps of sewage treatment.
-
Choose two matrices A and B with dimension 2 x 2. Calculate det A, det B, and det (AB). Repeat this process until you are able to discover how these three determinants are related. Summarize your...
-
The Amity Community Centre (ACC) has decided that it will proceed with a capital campaign this year. The building that it uses is in dire need of major repair and the board of directors feels that...
-
As your summer job, you work as a researcher in a consulting firm with clients who are citizen advocacy groups in Manitoba and the Yukon. They want to know how taxpayers' money is being spent on...
-
Trenholm School has been approached by its parents' association with a proposal for the coming school year. As the school is committed to accepting students with varying financial ability, parents...
-
An oil drum of diameter \(d\) and mass \(m\) floats in a bath of sea water of density \(ho_{w}\) as shown in Fig. 1.78. Considering a small displacement \(x\) of the oil drum from its static...
-
Find the length of the equivalent uniform hollow shaft of inner diameter \(d\) and thickness \(t\) that has the same axial spring constant as that of the solid conical shaft shown in Fig. 1.80. m A...
-
Find the equivalent spring constant and equivalent mass of the system shown in Fig. 1.79 with references to \(\theta\). Assume that the bars \(A O B\) and \(C D\) are rigid with negligible mass. m A...
Study smarter with the SolutionInn App