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
1. A flywheel is suspended by resting the inside of the rim on a horizontal knife edge so that the wheel can swing in a vertical
sammy [17]

Answer: A fly wheel having a mass of 30kg was allowed to swing as pendulum about a knife edge at inner side of the rim as shown in figure.

Explanation:

8 0
3 years ago
LAB 3.3 – Working with String Input and Type CastingStep 1: RemovefindErrors.cppfrom the project and add thepercentage.cppprogra
jolli1 [7]

Answer:

// Program is written in C++ Programming Language

// Comments are used for explanatory purpose

#include<iostream>

using namespace std;

int main ()

{

// Variable declaration

string name;

int numQuestions;

int numCorrect;

double percentage;

//Prompt to enter student's first and last name

cout<<"Enter student's first and last name";

cin>>name; // this line accepts input for variable name

cout<<"Number of question on test"; //Prompt to enter number of questions on test

cin>> numQuestions; //This line accepts Input for Variable numQuestions

cout<<"Number of answers student got correct: "; // Prompt to enter number of correct answers

cin>>numCorrect; //Enter number of correct answers

percentage = numCorrect * 100 / numQuestions; // calculate percentage

cout<<name<<" "<<percentage<<"%"; // print

return 0;

}

Explanation:

The code above calculates the percentage of a student's score in a certain test.

The code is extracted from the Question and completed after extraction.

It's written in C++ programming language

4 0
4 years ago
7. You sometimes service vehicles with rust damage. It's safe to lift them on a two-post,
solong [7]

You sometimes service vehicles with rust damage. It's safe to lift them on a two-post frame-engaging lift without checking the vehicle lifting points. This is false.

<h3>What is rust?</h3>

Rust is an iron oxide, a typically reddish-brown oxide created when iron and oxygen react catalytically with moisture from the air or water. Iron(III) oxide-hydroxide and hydrous iron(III) oxides make up rust, which is often linked to the corrosion of refined iron.

Rusting is the chemical process that causes a red or orange coating to form on the surface of metals. Corrosion incorporates rusting. Steel and iron rust when they come into contact with oxygen and water, which are both necessary for rusting to take place.

It should be noted that when servicing vehicles with rust damage, It's not safe to lift them on a two-post frame-engaging lift without checking the vehicle lifting points. This can cause an accident.

Learn more about rust on:

brainly.com/question/1477535

#SPJ1

You sometimes service vehicles with rust damage. It's safe to lift them on a two-post frame-engaging lift without checking the vehicle lifting points.

True

False

8 0
2 years ago
The repair and rehabilitation of damaged or spalled concrete is done by removing the:____________A. Loose concreteB. CollapsingC
Mrac [35]

Answer:

A. Loose concrete

Explanation:

Concrete is a solid composite structural material.It is the most used component in setting up a structure. Concrete is known for its very good ability to bear load, but can sometimes fail, or can be damaged. To rehabilitate or repair a concrete, the loose concrete must first be removed, so that the surface can be cleaned and well set before the material used for repair is applied on it.

8 0
4 years ago
Determine the force in each member of the truss. Stale if the members are in tension or compression. Prob.6-3
Fofino [41]

When a force is applied to a member and it is pointed at a joint, the member is in compression. When a force is directed away from a joint that the member is attached to, it is said to be in tension.

<h3>What is tension?</h3>

The pulling force transmitted axially by a string, rope, chain, or other similar object, or by each end of a rod, truss member, or other similar three-dimensional object, is referred to as tension in physics. Tension can also be described as the action-reaction pair of forces acting at each end of the aforementioned elements. Tension, the opposite of compression, is conceivable.

To measure tension as a transmitted force, an action-reaction pair of forces, or a restoring force, the International System of Units uses newtons (or pounds-force in Imperial units). At the point of attachment to the objects to which the string or rod is connected, the ends of a string or other object that transmits tension will exert forces in the direction of the string.

Learn more about tension

brainly.com/question/24994188

#SPJ4

3 0
2 years ago
Other questions:
  • A piston-cylinder device contains 0.1 m3 of liquid water and 0.9 m² of water vapor in equilibrium at 800 kPa. Heat is transferre
    5·1 answer
  • An example of Analog Data would be:
    8·1 answer
  • What is 395394^8739/980
    8·1 answer
  • Gn bbys sleep well<br><br><br><br><br> gn
    7·2 answers
  • Which of the following is an interdisciplinary approach to architectural or interior design most like?
    11·2 answers
  • A coil consists of 200 turns of copper wire and have a cross-sectional area of 0.8 mmm square.The mean length per turn is 80 cm
    13·1 answer
  • true or false: the types of building materials that’s should be used in a project does not constitute a conditional for projects
    13·2 answers
  • Technician A says that weld-on dent removal attachments may be used on a steel panel.
    7·1 answer
  • Which of the following elements would make a good insulator?
    10·1 answer
  • If I have a scaffold that is 83' tall, and the base of my scaffold is 5' wide least base dimension, then I am allowed to space m
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!