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
Artyom0805 [142]
4 years ago
7

4. Calculate the square root of potato using the sqrt() function. Print out the value of potato again to verify that the value o

f potato hasn't changed.
Engineering
1 answer:
N76 [4]4 years ago
8 0

Answer:

potato<-100

print(potato)

sqrt(potato)

potato<-potato*2

print(potato)

Explanation:

The complete question is as follows

Create a variable called potato whose value corresponds to the number of potatoes you’ve eaten in the last week. Or something equally ridiculous. Print out the value of potato.

Calculate the square root of potato using the sqrt() function. Print out the value of potato again to verify that the value of potato hasn’t changed.

Reassign the value of potato to potato * 2.

Print out the new value of potato to verify that it has changed

The question was answered using R programming language.

At line 1, I assumed that I ate 100 potatoes in the previous week.

So, potato = 100

At line 2, the value of potato is printed as 100.

At line 3, the square root of potato is calculated using sqrt function: Square for of 100 = 10

At line 4,the initial value of potato is doubled and stored in potato variable. 100 * 2 = 200

At line 5, the new value of potato is printed: 200.

You might be interested in
Explain the difference between statically determinate beam and statically in determinate beam with sketch.
riadik2000 [5.3K]

Answer

Statically determinate beams are those beams in which the unknown reaction forces are equal or less than the equilibrium equation.

As shown in figure 1 in which reaction forces are 3 and we have 3 equilibrium equation so beam is determinate.

Statically indeterminate beams are those beams in which unknown reaction force are more than the  equilibrium equation.

As shown in figure 2 in which reaction forces are 6 and we have 3 equilibrium equation so beam is indeterminate.

5 0
3 years ago
Relation between Poisson's ration, young's modulus, shear modulus for an isotropic material
poizon [28]

Answer:

 E=2 G(1+2μ)

Explanation:

Isotropic material :

 Those material have same property in all direction is known as isotropic material.

Homogeneous material :

 Those material have same property through out the volume is known as homogeneous material.

Relationship between Poisson ratio ,young modulus and shear modulus:

   E=2 G(1+2μ)

Relationship between Poisson ratio ,bulk modulus and shear modulus:

E=2 K(1-μ)

Where

E is  young modulus.

G is shear modulus.

μ is Poisson ratio.

 

8 0
3 years ago
How to solve this ..Help me !! I need your help ..please​
Mandarinka [93]

A54545 is the thing which is your

Explanation:

4 0
3 years ago
Suppose that the weights for newborn kittens are normally distributed with a mean of 125 grams and a standard deviation of 15 gr
kherson [118]

(a) If a kitten weighs 99 grams at birth, it is at 5.72 percentile of the weight distribution.

(b) For a kitten to be at 90th percentile, the minimum weight is 146.45 g.

<h3>Weight distribution of the kitten</h3>

In a normal distribution curve;

  • 2 standard deviation (2d) below the mean (M), (M - 2d) is at 2%
  • 1 standard deviation (d) below the mean (M), (M - d) is at 16 %
  • 1 standard deviation (d) above the mean (M), (M + d) is at 84%
  • 2 standard deviation (2d) above the mean (M), (M + 2d) is at 98%

M - 2d = 125 g - 2(15g) = 95 g

M - d = 125 g - 15 g = 110 g

95 g is at 2% and 110 g is at 16%

(16% - 2%) = 14%

(110 - 95) = 15 g

14% / 15g = 0.93%/g

From 95 g to 99 g:

99 g - 95 g  = 4 g

4g x 0.93%/g = 3.72%

99 g will be at:

(2% + 3.72%) = 5.72%

Thus, if a kitten weighs 99 grams at birth, it is at 5.72 percentile of the weight distribution.

<h3>Weight of the kitten in the 90th percentile</h3>

M + d = 125 + 15 = 140 g      (at 84%)

M + 2d = 125 + 2(15) = 155 g   ( at 98%)

155 g - 140 g = 15 g

14% / 15g = 0.93%/g

84% + x(0.93%/g) = 90%

84 + 0.93x = 90

0.93x = 6

x = 6.45 g

weight of a kitten in 90th percentile = 140 g + 6.45 g  = 146.45 g

Thus, for a kitten to be at 90th percentile, the approximate weight is 146.45 g

Learn more about standard deviation here: brainly.com/question/475676

#SPJ1

7 0
2 years ago
The reaction between ethylene and hydrogen bromide to form ethyl bromide is carried out in a continuous reactor. The product str
Dimas [21]

Answer:

Fractional conversion=0.749

Percentage by which the other reactant is in excess=16.56%

extent = 56.23 mol/s

Explanation:

reaction

C_{2}H_{4} + HBr - - -> C_{2}H_{5}Br

molar composition of the product stream:

C_{2}H_{5}Br = 51.7%

HBr = 17.3 %

when you add these two compositions you don't get 100%  (69%) so there is also ethylene in the product stream.

C_{2}H_{4} = 100% - 69% = 31%

We are going to suppose a flow rate in the product stream of 100 mol/s. Although you have a flow rate for the feed stream since you don't know the molar composition in the entrance is easier suppose a molar flow in the outlet.  

with this information we can estimate the number of moles in the product stream as:

mol_{i}=MF_{T}*molar-percentaje

MF= total molar flow.

C_{2}H_{5}Br = 100 \frac{m}{s}*0.517=51.7 mol/s

HBr =17.3 mol/s

C_{2}H_{4} = 31 mol/s

The stoichiometry for this reaction is 1: 1. With this information we can estimate the moles of each reagent in the feed stream. To produce 51.7 mol of C_{2}H_{5}Br we needed 51.7 moles of HBr and C_{2}H_{4} respectively.

mol_{in}=mol_{used}+mol_{out}

HBr = 51.7 mol + 17.3 mol =69 mol

C_{2}H_{4} = 82.7 mol

with this we can see that the limit reagent in this reaction is HBr.

82.7 mol of C_{2}H_{4} need the same number of mol of HBr but there is just 69 moles of this.

The molar composition in the inlet is:

HBr =\frac{mol-HBr}{total-mol}*100=\frac{69}{69+82.7}*100 = 45.4%

C_{2}H_{4} = 100% - 45.4% = 54.51%

Fractional conversion of HBr (FC) = \frac{mol_{used}}{mol_{in}}

=\frac{69 mol-17.3mol}{69 mol}= 0.749

percentage of C_{2}H_{4} in excess =\frac{mol_{in}-mol_{needed}}{mol_{in}}*100=\frac{69 mol}{82.7}*100 =16.56%

b. The extent of reaction (e) is defined as:

e=\frac{n_{out}-n_{in}}{(+-)v}

where n indicate the moles of a compound in the inlet (in) and in outlet (out) respectively and v is the stoichiometric coefficient for that compound in the reaction. It can be negative if it's a reagent or positive if it's a product.

In this case we have 165 mol/s a flow rate in the inlet. Assuming that the composition in the inlet and the fractional conversion are the same we have.

mol  HBr (inlet) = 165 mol/s * 45.4% = 75.04 mol

FC_{HBr}=\frac{mol_{in}-mol_{out}}{mol_{in}}

mol HBr_{out}=mol_{in}-mol_{in}*FC=75.04-75.04*0.749=18.81 mol

v=-1

e=\frac{18.81mol-75.04mol}{-1}=56.23 mol

5 0
3 years ago
Other questions:
  • Complete function PrintPopcornTime(), with int parameter bagOunces, and void return type. If bagOunces is less than 3, print "To
    7·1 answer
  • A composite wall is to be used to insulate a freezer chamber at -350C. Two insulating materials are to be used with conductiviti
    7·1 answer
  • A Transmission Control Protocol (TCP) connection is in working order and both sides can send each other data. What is the TCP so
    7·1 answer
  • A piston cylinder assembly fitted with a slowly rotating paddle wheel contains 0.13 kg of air at 300K. The air undergoes a const
    10·1 answer
  • Give an example of one technology that is well matched to the needs of the environment, and one technology that is not.
    9·1 answer
  • A company buys a machine for $12,000, which it agrees to pay for in five equal annual payments, beginning one year after the dat
    13·1 answer
  • When using fall arrest, free fall must be kept at or below how many feet
    13·1 answer
  • Consider a machine of mass 70 kg mounted to ground through an isolation system of total stiffness 30,000 N/m, with a measured da
    9·1 answer
  • Propose any improvements if there are any in brake system
    7·1 answer
  • For a turbulent flow of a fluid in 0.6 m diameter pipe, the velocity 0.15 m from the wall is 2.7 m/s. Estimate the wall shear st
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!