Answer:
#include <iostream>
#include <vector>
using namespace std;
int main() {
const int NUM_GUESSES = 3;
vector<int> userGuesses(NUM_GUESSES);
int i = 0;
int uGuess = 0;
for(i = 0; i <= userGuesses.size() - 1; i++){
cin >> uGuess;
userGuesses.at(i) = uGuess;
}
cout << endl;
return 0;
}
Explanation:
First inbuilt library were imported. Then inside the main( ) function, 3 was assigned to NUM_GUESSES meaning the user is to guess 3 numbers. Next, a vector was defined with a size of NUM_GUESSES.
Then a for-loop is use to receive user guess via cin and each guess is assigned to the vector.
Answer:
0.00321 Nm
Explanation:
= Final angular velocity = 3.5 rad/s
= Initial angular velocity = 0
= Angular acceleration
= Angle of rotation = 2 rev
Equation of rotational motion
Moment of inertia is given by
Torque is given by
The torque required is 0.00321 Nm
To solve the problem it is necessary to apply the conservation equations for the moment, specifically for collision. In addition to that, the concepts of vector velocity are necessary, in which the components are obtained and if the total magnitude is necessary.
Conservation of Momentum equation is given by,
We need to find the speed 3, therefore by readjusting the equation we have,
Therefore the components of the velocity would be,