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
How are scientific discoveries used in engineering design?
Citrus2011 [14]

Answer:

one is technology

6 0
4 years ago
A 300 mm long steel bar with a square cross section (25 mm per edge) is pulled in tension with a load of 83,051 N , and experien
umka2103 [35]

Answer:

the answer is attached with required units.

Explanation:

5 0
3 years ago
How much memory can a 32 -bit processor support ?
JulijaS [17]

It supporst only 4 Gigabytes of memory in the system

3 0
3 years ago
If you are setting up a race car. What is the cross weight? Does it matter?
lara31 [8.8K]

Answer:

cross-weight is used to tighten it up.

Explanation:

and yes this is important because Cross-weight percentage compares the diagonal weight totals to the car's total weight.

hope  this help

(mark this answer as an brainliest answer)

7 0
3 years ago
All aspects of the Kirby-Bauer test are standardized to assure reliability. What might be the consequence of pouring the plates
EleoNora [17]

Answer:

it would affect the distance the antiantibodies diffuse from the disk

Explanation:

7 0
2 years ago
Other questions:
  • In a tensile test on a steel specimen, true strain is 0.171 at a stress of 263.8 MPa. When true stress is 346.2 MPa, true strain
    7·1 answer
  • Which phrases describe an irregular galaxy?
    8·1 answer
  • A venturi meter is to be installed in a 63 mm bore section of a piping system to measure the flow rate of water in it. From spac
    15·1 answer
  • The two pond system is fed by a stream with flow rate 1.0 MGD (million gallons per day) and BOD (nonconservative pollutant) conc
    15·1 answer
  • A diesel engine with an engine volume of 4.0 L and an engine speed of 2500 rpm operates on an air–fuel ratio of 18 kg air/kg fue
    6·2 answers
  • One cubic meter of nitrogen at 40°C and 340kPa is compressed isoentropically to 0.2m^3. Calculate the final pressure when the ni
    9·1 answer
  • Consider the experiment of Problem 1.27, in which a frictionless puck is sliding straight across a rotating turntable through th
    10·1 answer
  • Is a street the same as a avenue
    10·2 answers
  • QUICK!<br> WHAT DOES BIOCHEMICAL MEAN?
    11·2 answers
  • Describe the first case where the power of synthesis was used to solve design problems.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!