Answer to Question #265170 in C++ for ursula

Question #265170

The formula below describes Newton's second law of motion


Force = Mass x acceleration


Using the variables below Write one line of code that will calculate the acceleration of a object.




// Mass in Kg


float mass = 50.3;


// Froce in N


int force = 720; 


//acceleration


float accel;




//One line of code to calculate the acceleration of a object


=


1
Expert's answer
2021-11-18T15:15:14-0500
#include <iostream>
using namespace std;
int main(){
float mass=50.3;
int force=720;
float accel;
accel=force/mass;
cout<<"acceleration: "<<accel<<endl;
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS