Implement the simulation of a biased 6-sided die which takes the values 1,2,3,4,5,6 with probabilities 1/8,1/12,1/8,1/12,1/12,1/
hjlf
Answer:
see explaination
Explanation:
import numpy as np
import matplotlib.pyplot as plt
a = [1, 2, 3, 4, 5, 6]
prob = [1.0/8.0, 1.0/12.0, 1.0/8.0, 1.0/12.0, 1.0/12.0, 1.0/2.0]
smls = 1000000
rolls = list(np.random.choice(a, smls, p=prob))
counts = [rolls.count(i) for i in a]
prob_exper = [float(counts[i])/1000000.0 for i in range(6)]
print("\nProbabilities from experiment : \n\n", prob_exper, end = "\n\n")
plt.hist(rolls)
plt.title("Histogram with counts")
plt.show()
check attachment output and histogram
The way to proceed in the situation presented would be:
- Finish the process started to help that user and continue with the other tasks of the day.
<h3>How to serve a customer properly?</h3>
In different work positions we have the possibility of personally or virtually assisting clients by carrying out procedures to help them improve their service or experience with the company.
Companies have developed complete customer service systems so that their employees know how to proceed in different specific situations in which their customers require help.
In the situation described, the most appropriate thing would be to finish the process required by the user and continue with the other tasks of the day that were planned.
Learn more about job in: brainly.com/question/2018598
Answer:
public static void removeInRange(List<Integer> list, int value, int start, int end) {
for (int i = end - 1; i >= start; i--) {
if (list.get(i) == value) {
list.remove(i);
}
}
System.out.println(list);
}
Explanation:
- Create a method named <em>removeInRange</em> that takes four parameters, a list, an integer number, a starting index and an ending index
- Inside the method, initialize a <u>for loop</u> that iterates between starting index and ending index
- If any number between these ranges is equal to the given <em>value</em>, then remove that value from the list, using <u>remove</u> method
- When the loop is done, print the new list
DROP CAP:-
<u>Drop caps are a specific kind of initial letter, large letters that appear at the beginning of a block of text. ... A drop cap is often used to signify that the reader's moved into a significant new section, or that a new chapter's begun.</u>
<u>Drop caps are a specific kind of initial letter, large letters that appear at the beginning of a block of text. ... A drop cap is often used to signify that the reader's moved into a significant new section, or that a new chapter's begun.A drop cap (dropped capital) is a large capital letter used as a decorative element at the beginning of a paragraph or section. The size of a drop cap is usually two or more lines. The following illustration shows your options for positioning a drop cap.</u>
Answer:
i cloud
Explanation:
but if you dont gota paypal youd want to get like an std card or somthime