Question: 1. Write a python code that rolls three 6 sided dice. If the sum is eleven and any of the dice are an even number,
1. Write a python code that rolls three 6 sided dice. If the sum is eleven and any of the dice are an even number, declare a winner. The program should roll dice until there is a win. 2. Compute the sum of the series 1 with n=1 to 200. 200 ni 3. Compute the sum of the even numbers from n=2 to 1.000. 1000 reven n=2 4. Perform numerical integration of the function f(x)=sin(x) over the interval o to pi/2. Use Simpson's 1/3 rule with n=32, 64, and 128 intervals. Report the solutions and the true errors for each n. 5. Perform Romberg integration on the solutions from 4. Report the solution and the true error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
