Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

Students also viewed these Databases questions

Question

3. In your description answer the following questions:

Answered: 1 week ago