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]
3 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]3 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
What can your employer do to protect you from overhead power lines?
agasfer [191]

Answer:

Have the power company install insulated sleeves (also known as “eels”) over power lines.​

Wearing PPE is the only way to prevent being electrocuted

Explanation:

To prevent electrocution at workplace, employers can ensure that the  power company install insulated sleeves (also known as “eels”) over power lines.​ Additionally, the employees should wear PPEs which are insulators to prevent electrocution.

5 0
3 years ago
What is the perimeter of 14-7 and 3-4
Goshia [24]

Answer:

If you mean two sides are 7 and two sides are 14 then you'd have 42

and for the second you'd have 14

Explanation:

7 + 7 = 14, 14 + 14 = 28, 14 + 28 = 42

3 + 3 = 6, 4 + 4 = 8, 8 + 6 = 14

5 0
3 years ago
What technology has been used for building super structures​
AleksAgata [21]

Answer: Advanced technologixal machines

Explanation: such as big cranes, multiple workers helping creat said structure, and big bull dozers

7 0
2 years ago
If the density of states function in the conduction band of a particular semiconductor is a constant equal to K, derive the expr
s2008m [1.1K]

Answer:

full details of the answer is attached

5 0
2 years ago
Which kind of fracture (ductile or brittle) is associated with each of the two crack propagation mechanisms?
Nina [5.8K]

dutile is the correct answer

6 0
2 years ago
Other questions:
  • NO reacts with Br2 in the gas phase according to the following chemical equation: 2NO(g) +Br2(g)2NOBr(g) It is observed that, wh
    6·1 answer
  • After a 65 newton weight has fallen freely from rest a vertical distance of 5.3 meters, the kinetic energy of the weight is
    12·1 answer
  • 6. PVC boxes are primarily used in new construction because it is simple to
    11·1 answer
  • Dunno what to ask, okbye
    5·1 answer
  • The organic acid, ACOOH, reacts reversibly with the alcohol BOH, to form the ester ACOOB according to the stoichiometric equatio
    6·1 answer
  • On July 23, 1983, Air Canada Flight 143 required 22,300 kg of jet fuel to fly from Montreal to Edmonton. The density of jet fuel
    8·1 answer
  • 5) /
    12·1 answer
  • Three consequences of unbalanced wheels on a motor vehicle​
    11·1 answer
  • By using a book of the OHS Act, Act 85 of 1993, find the act or regulation where the following extraction comes from "every empl
    12·1 answer
  • Excessive looseness in steering and suspension components can cause _____
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!