1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
anastassius [24]
2 years ago
13

Generate a process that would generate random numbers between –1 and 1 for x and y positions of 10000 points and count how many

points fall with the circle, then determine an estimated version of π. (see below to generate floating point random numbers. this generation is not needed to describe the process, but to implement the process)
Mathematics
1 answer:
goblinko [34]2 years ago
5 0
<span>#!/usr/bin/env python

import random
import math
count_inside = 0
     for count in range(0, 10000): d = math.hypot(random.random(), random.random())
    if d < 1: count_inside += 1
count += 1
print 4.0 * count_inside / count</span>
You might be interested in
9. The ticket at right has a perimeter of 42 cm.
Liula [17]

Perimeter simply represents the sum of all side lengths of a shape. The length of the missing side of the ticket is 5 cm; the length of gold line on each ticket is 20 cm, and 2 bottles of gold ink are required to draw gold lines on 200 tickets.

I've added the image of the ticket as an attachment.

(a) The missing side length

From the attachment, the 4 unknown side lengths are equal. Represent this side length with L.

So, we have:

Perimeter =2\times 11 + 4 \times L

This gives

2\times11 + 4 \times L = 42

22 + 4 \times L = 42

Collect like terms

4 \times L = 42-22

4 \times L = 20

Divide both sides by 4

L =5cm

(b) The length of the gold lines

There are 4 slant lines and the length of one of the slant lines is 5 cm (as calculated above).

So, the length of the gold line is:

Gold = 4 \times L

Gold = 4 \times 5cm

Gold = 20cm

(c) The number of gold ink bottles.

n = 200 --- number of tickets

The length of all gold line in the 200 tickets is:

Length = 200 \times Gold

Length = 200 \times 20cm

Length = 4000 cm

Length = 4000 \times 0.01m ---- convert to meters

Length = 40m

Given that:

Bottle = 20m --- 1 bottle for 20 m

The number of bottles (n) is:

n = \frac{Length}{Bottles}

n = \frac{40m}{20m}

n = 2

Hence, 2 bottles of gold ink are enough.

Read more about perimeters at:

brainly.com/question/6465134

4 0
2 years ago
You meet with the financial aid office to discuss your costs for attending MGA next semester. Tuition is $113.67 per credit hour
jenyasd209 [6]

Answer:

$1615.05

Step-by-step explanation:

First the cost. We know that tuition per credit hour is 113.67 and there is a flat fee of 660. This can be represented by 113.67h + 660, where h is equal to the number of credit hours.

Next, the amount paid. There are two constants of 350 and 400 already there. We can represent the remaining amount that needs to be paid by another variable, x.

Now, the cost needs to be equal to the amount you pay. We can replace h with 15 for 15 hours and solve for x.

113.67h + 660 = 350 + 400 + x

113.67(15) + 660 = 350 + 400 + x

1705.05 + 660 = 750 + x

2365.05 = 750 + x

1615.05 = x

3 0
2 years ago
A train travels 220 miles in 4 hours. What is the train's speed in feet per minute?
Katena32 [7]
220 miles in 4 h = 55 mph multiply this by 5280 to get feet per hour then divide this by 60 to get ft/min


7 0
3 years ago
Read 2 more answers
80 points just please help
Arlecino [84]

Answer:

F

Step-by-step explanation:

If you used the first one

(4÷4) (4÷4) = 1 which is correct.

input the values in the equations and check each one

5 0
3 years ago
Read 2 more answers
Diana uses 30 grams of coffee beans to make 48 fluid ounces of coffee. When the company comes she makes 100 fluid ounces of coff
murzikaleks [220]
Sixty four fluid ounces hope that helped

7 0
3 years ago
Read 2 more answers
Other questions:
  • A six-sided number cube is tossed and a coin is flipped.
    9·1 answer
  • Need help please thanks
    9·1 answer
  • A piece of string 25 1/2 inch long will be cut into 3/4 inches pieces how many pieces will there be
    12·2 answers
  • Explain how you could use objects to act out this problem
    12·2 answers
  • What is the answer to this Algebra 2 question?
    10·1 answer
  • Please tell me which are correct
    15·2 answers
  • A mirror should be centered on a wall. The mirror is 4 feet wide and the wall is 20 feet wide. Which equation helps determine th
    13·1 answer
  • Solve for x:0.75x=22.50
    13·2 answers
  • I will mark a thanks and give 10 points please answer
    8·1 answer
  • Identify the value of p.<br><br> p = 11<br> p = 10<br> p = 12<br> p = 13
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!