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
 
        
             
        
        
        
The answer would be B. An increase in the price of a complement.
        
             
        
        
        
I actually have this problem all the time. Rarely any of my questions get answered and I see this happening to other people all the time. It's crazy. 
        
                    
             
        
        
        
Answer :Computers never get tired or bored because of doing the same task continuously. They work in the same manner all the time. A computer can store large amount of information in its memory.
Explanation: it is quality which makes the user to be dependent on computer. As we all know, computer systems do repetitive tasks without any boredom, tiredness, or fatigue.
 
        
             
        
        
        
Answer:
90%
Explanation:
90%
ELO 4.2 A department requires access to the database application from Monday to Friday, 9AM to 5 PM. Last Thursday at 1 PM, the application crashed, and it took six hours to fix the problem. What was the availability of the application during the week?