Answer: Find answers in the attachments
Explanation:
<u>The most important job duty of a software developer is to develop a product/program that is easy to use and melts a customer’s need.</u>
<u></u>
Explanation:
Some other duties of a Software developer are
- Researching,designing and implementing new software program's and then managing them
- Testing and evaluating the developed software program's
- Identifying errors in the existing program's and modifying the same
- Writing effective codes
- employing various software tools
- Training new users
- Working closely with the other developers
Answer:
import numpy as np
def sample_median(n, P):
return np.median( np.random.choice ( np.arange (1, len(P) + 1 ), n, p = P ) )
print(sample_median(10,[0.1 0.2 0.1 0.3 0.1 0.2]))
print(sample_median(10,[0.1 0.2 0.1 0.3 0.1 0.2]))
print(sample_median(5, [0.3,0.7])
print(sample_median(5, [0.3,0.7])
Explanation:
- Bring in the numpy library to use the median function provided by the numpy library.
- Define the sample_median function that takes in 2 parameters and returns the median with the help of built-in random, choice and arrange functions.
- Call the sample_median function by providing some values to test and then display the results.
Output:
4.5
4.0
2.0
1.0