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
Mandarinka [93]
2 years ago
7

In python, how would I randomize numbers and insert them into a file?

Engineering
1 answer:
BabaBlast [244]2 years ago
7 0
Random integer values can be generated with the randint() function. This function takes two arguments: the start and the end of the range for the generated integer values. Random integers are generated within and including the start and end of range values, specifically in the interval [start, end].
You might be interested in
The 50mm diameter cylinder is made from Am 1004-T61 magnesium (E = 44.7GPa, a = 26x10^-6/°C)
BartSMP [9]

Answer:

......................

Explanation:

3 0
3 years ago
A rich industrialist was found murdered in his house. The police arrived at the scene at 11:00 PM. The temperature of the corpse
d1i1m1o1n [39]

Answer:

The dude was killed around 6:30PM

Explanation:

Newton's law of cooling states:

    T = T_m + (T_0-T_m)e^{kt}

where,

T_0 = initial temp

T_m = temp of room

T = temp after t hours

k = how fast the temp is changing

t = time (hours)

T_0 = 31     because the body was initlally 31ºC when the police found it

T_m = 22   because that was the room temp

T = 30  because the body temp drop to 30ºC after 1 hour

t = 1 because that's the time it took for the body temp to drop to 30ºC

k=???   we don't know k so we must solve for this

rearrange the equation to solve for k

T = T_m + (T_0-T_m)e^{kt}

T - T_m= (T_0-T_m)e^{kt}

\frac{T - T_m}{(T_0-T_m)}= e^{kt}

ln(\frac{T - T_m}{T_0-T_m})=kt

\frac{ln(\frac{T - T_m}{T_0-T_m})}{t}=k

plug in the numbers to solve for k

k = \frac{ln(\frac{T - T_m}{T_0-T_m})}{t}

k = \frac{ln(\frac{30 - 22}{31-22})}{1}

k=ln(\frac{8}{9})

Now that we know the value for k, we can find the moment the murder occur. A crucial information that the question left out is the temperature of a human body when they're still alive. A living human body is about 37ºC. We can use that as out initial temperature to solve this problem because we can assume that the freshly killed body will be around 37ºC.

T_0 = 37     because the body was 37ºC right after being killed

T_m = 22   because that was the room temp

T = 31  because the body temp when the police found it

k=ln(\frac{8}{9})   we solved this earlier

t = ???   we don't know how long it took from the time of the murder to when the police found the body

Rearrange the equation to solve for t

T = T_m + (T_0-T_m)e^{kt}

T - T_m= (T_0-T_m)e^{kt}

\frac{T - T_m}{(T_0-T_m)}= e^{kt}

ln(\frac{T - T_m}{T_0-T_m})=kt

\frac{ln(\frac{T - T_m}{T_0-T_m})}{k}=t

plug in the values

t=\frac{ln(\frac{T - T_m}{T_0-T_m})}{k}

t=\frac{ln(\frac{31 - 22}{37-22})}{ln(8/9)}

t=\frac{ln(3/5)}{ln(8/9)}

t=\frac{ln(3/5)}{ln(8/9)}

t ≈ 4.337 hours from the time the body was killed to when the police found it.

The police found the body at 11:00PM so subtract 4.337 from that.

11 - 4.33 = 6.66 ≈ 6:30PM

7 0
3 years ago
1. A soil core sampling tube of 4 cm diameter, 12 cm length and initial mass of 0.525 kg (sample only), was dried at 105o C and
belka [17]

Answer:

porosity = 0.07 or 7%

dry bulk density = 3.25g/cm3]

water content =

Explanation:

bulk density = dry Mass / volume of  sample

dry mass = 0.490kg = 490g

volume = πr2h = 3.142 * 2 *2 *12 = 150.8cm3

density = 490/150.8 = 3.25g/cm3

porosity = \frac{wet mass - dry mass }{wet mass} = \frac{0.525 - 0.49}{0.525} = 0.07 or 7%

water content =  \frac{wet mass - dry mass}{wet mass} = 7%

8 0
3 years ago
Read 2 more answers
The particle travels along the path defined by the parabola y=0.5x2, where x and y are in ft. If the component of velocity along
JulsSmile [24]

Answer:

D=41.48 ft

a=54.43\ ft/s^2

Explanation:

Given that

y=0.5 x²                      

Vx= 2 t

We know that

V_x=\dfrac{dx}{dt}

At t= 0 ,x=0  

x=\int V_x.dt

At t= 3 s

x=\int_{0}^{3} 2t.dt

x=[t^2\left\right ]_0^3

x= 9 ft

When x= 9 ft then

y= 0.5 x 9²  ft

y= 40.5 ft

So distance from origin is

x= 9 ft ,y= 40.5 ft

D=\sqrt{9^2+40.5^2} \ ft

D=41.48 ft

a_x=\dfrac{dV_x}{dt}

Vx= 2 t

a_x= 2\ ft/s^2

At t= 3 s , x= 9 ft

y=0.5 x²    

a_y=\dfrac{d^2y}{dt^2}

y=0.5 x²    

\dfrac{dy}{dt}=x\dfrac{dx}{dt}

\dfrac{d^2y}{dt^2}=\left(\dfrac{dx}{dt}\right)^2+x\dfrac{d^2x}{dt^2}

Given that

\dfrac{dx}{dt}=2t

\dfrac{dx}{dt}=2\times 3

\dfrac{dx}{dt}=6\ ft/s

a_y=\dfrac{d^2y}{dt^2}=6^2+9\times 2\ ft/s^2

a_y=54\ ft/s^2

a=\sqrt{a_x^2+a_y^2}\ ft/s^2

a=\sqrt{2^2+54^2}\ ft/s^2

a=54.43\ ft/s^2

7 0
3 years ago
Who is part of the design team in construction?
Semmy [17]

Answer:

An architect and engineers are the design team for construction projects. The team itself can also consist of an architectural company and an engineering firm that hires many architects or engineers.

Explanation:

The design team comprises the professionals needed to design the work and perhaps ensure that the work completed follows the project brief.

Designers are likely in the first place to be members of the customer's consultant team. This is generally supported by: architects.

Technologists of architecture.

Engineers of the system.

Engineers of infrastructure.

Designers of landscape.

The growing complexity of the building design means, however, that additional expertise such as: specialized facilities (e.g., kitchens, operating theatres, ponds, recording studios) is increasingly needed.

Designer of materials (for example, structural systems, doors and windows, vitreous or flooring).

Fittings and specialist equipment.

Equipment for audiovisuals.

Facilities for Information and Communications (ITC).

Facilities for safety and security.

Specialist systems (e.g. handling of baggage).

Lighting specialist.

Acoustic environment. Acoustic environment.

6 0
3 years ago
Other questions:
  • Air as an ideal gas in a closed system undergoes a reversible process between temperatures of 1000 K and 400 K. The beginning pr
    9·1 answer
  • 11–17 A long, thin-walled double-pipe heat exchanger with tube and shell diameters of 1.0 cm and 2.5 cm, respectively, is used t
    9·1 answer
  • The snowmobile has a weight of 250 lb, centered at G1, while the rider has a weight of 150 lb, centered at G2. Ifh=3ft, determin
    11·1 answer
  • Air enters a well-insulated turbine operating at steady, state with negligible velocity at 4 MPa, 300°C. The air expands to an e
    10·1 answer
  • When moving cylinders always remove and make
    8·1 answer
  • Given two alphabet strings str1 and str2. You can change the characters in str1 to any alphabet characters in order to transform
    8·1 answer
  • George is replacing a burned out resistor in a circuit board. The board has a 10, a 20, and a 40 on resistor, all in parallel. W
    5·1 answer
  • In the car industry, clay models are used to visualize and test new car designs.
    5·2 answers
  • What is the primary difference between the process of lost-wax casting as practiced in ancient times and that same process today
    13·1 answer
  • When bending metal, the material on the outside of the curve stretches while the material on the inside of the curve compresses.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!