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
14. The maximum amount a homeowner should spend on housing is
Simora [160]

Answer:

28%

Explanation:

Although there are sources that says 30% of gross income can be spent on housing, the most reliable amount that can be spent (according to other sources) is 28%.

Take for instance, you earn $5000 monthly, the maximum that you can spend on housing is:

Max = 28\% * \$5000

Using a calculator, we have:

Max = \$1400

<em>The maximum that can be spent on a monthly gross income of $5000 is $1400</em>

8 0
2 years ago
Consider two different versions of algorithm for finding gcd of two numbers (as given below), Estimate how many times faster it
juin [17]

Answer:

Explanation:

Step 1:

a) The formula for compute greatest advisor is

     gcd(m,n) = gcd (n,m mod n)

the gcd(31415,14142) by applying Euclid's algorithm is

    gcd(31,415,14,142) =gcd(14,142,3,131)

                                  =gcd=(3,131, 1,618)

                                   =gcd(1,618, 1,513)

                                   =gcd(1,513, 105)

                                   =gcd(105, 43)

                                    =gcd(43, 19)

                                     =gcd(19, 5)

                                      =gcd(5, 4)

                                      =gcd(4, 1)

                                      =gcd(1, 0)

                                      =1

STEP 2

b)  The number of comparison of given input with the algorithm based on  checking consecutive integers and Euclid's algorithm is

     The number of division using Euclid's algorithm =10 from part (a)

      The consecutive integer checking algorithm:

      The number of iterations =14,142 and 1 or 2 division of iteration.

        14,142 ∠= number of division∠ = 2*14,142

         Euclid's algorithm is faster by at least 14,142/10 =1400 times

          At most 2*14,142/10 =2800 times.

5 0
3 years ago
__________ affect(s) the amount of air conditioning required.
Grace [21]

Answer:

Option D

All the above

Explanation:

Depending with the number of occupants in a building, the number of air conditioners required can either be increased or reduced. For instance, if the building is to be a classroom of over 50 students, 1 air-conditioner can't serve effectively. Similarly, the activity of occupants also dictate the amount of air conditioners required since if it's a gym room where occupants exercise often then the air conditioners required is different from if the room was to serve as a  lounge. The appliances that also operate in a room require that air conditioners be installed as per the heat that may be generated by the appliances.

5 0
3 years ago
During Atterberg limit tests in the soil mechanics laboratory, the students obtained the following results from a clayey soil. L
m_a_m_a [10]

<u>the liquid limit</u>

LL=-0.8078x*49.503

LL=-0.8078(25)+49.503

LL=29.308

<u>plasticity index of the soil</u>

PL=217.2%+17.8%/2

PL=17.5

PI=LL-PL

PI=29.308-17.5

PL=11.808

Hope this helps, now you know the answer and how to do it. HAVE A BLESSED AND WONDERFUL DAY! As well as a great rest of Black History Month! :-)  

- Cutiepatutie ☺❀❤

6 0
3 years ago
A manometer is used to measure the air pressure in a tanlc The fluid used has a specific gravity of 1.25, and the differentialhe
Alenkasestr [34]

Answer:

(a) 11.437 psia

(b) 13.963 psia

Explanation:

The pressure exerted by a fluid can be estimated by multiplying the density of the fluid, acceleration due to gravity and the depth of the fluid. To determine the fluid density, we have:

fluid density = specific gravity * density of water = 1.25 * 62.4 lbm/ft^3 = 78 lbm/ft^3

height = 28 in * (1 ft/12 in) = 2.33 ft

acceleration due to gravity = 32.174 ft/s^2

The change in pressure = fluid density*acceleration due to gravity*height = 78*32.174*(28/12) = 5855.668 lbm*ft/(s^2 * ft^2) = 5855.668 lbf/ft^2

The we convert from lbf/ft^2 to psi:

(5855.668/32.174)*0.00694 psi = 1.263 psi

(a) pressure = atmospheric pressure - change in pressure = 12.7 - 1.263 = 11.437 psia

(b) pressure = atmospheric pressure + change in pressure = 12.7 + 1.263 = 13.963 psia

8 0
3 years ago
Other questions:
  • What is the reason for the development of new construction of materials for human use? (Select all that apply.)
    12·1 answer
  • How should employees talk to clients)
    9·1 answer
  • Block A is released from rest and slides down the frictionless ramp to the loop. The maximum height h of the loop is the same as
    6·1 answer
  • Which of the following best describes a central idea of the text?
    10·1 answer
  • The E7018 Electrode produces a/an
    9·1 answer
  • A refrigerator operating on the Carnot cycle is used to make ice. Water freezing at 32oF is the cold reservoir. Heat is rejected
    11·1 answer
  • The complexity of bfs and dfs
    11·1 answer
  • Jack has been concerned about the rapidly changing green regulations in his state and his ability as a mechanical engineer to ke
    13·1 answer
  • A ____ is either in the pressure reducer or in the downstream side of the system to ensure that the control air pressure does no
    15·1 answer
  • A book sitting on a shelf is an example of ____________.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!