Nicole wants to create a database to collect information about sales transactions. She would like to use the database to look up customer names and sales prices if they return a product. She would also like to retrieve their credit card number in order to reimburse them. In addition, she would like to sort the items in the database by product number. What fields should she have in her database?
A. product number, product description, and sales price
B. product description, sales price, and employee name
C. last name, first name, telephone number, and address
D. name, credit card number, product number, and sales price
Write a python function average_sample_median (n, P), that return the average of 1000 samples of size n sampled from the distribution P.
* Sample run *
print (average_sample_median (10,[0.2,0.1,0.15,0.15,0.2,0.2])) print (average_sample_median (10,[0.3,0.4,0.3])) print (average_sample_median (10, P=[0.99,0.01])
* Expected Output *
3.7855
2.004
1