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:
304 meters downstream
Explanation:
The given parameters are;
The speed of the swimmer = 2.00 m/s
The width of the river = 73.0 m
The speed of the river = 8.00 m/s
Therefore;
The direction of the swimmer's resultant velocity = tan⁻¹(8/2) ≈ 75.96° downstream
The distance downstream the swimmer will reach the opposite shore = 4 × 73 = 304 m downstream
The distance downstream the swimmer will reach the opposite shore = 304 m downstream
It's moving, in a straight line and at a constant speed. It can't be accelerating.
Answer: 1
Explanation:
Given
Tension is the string 
mass of object 
Tension is greater than the weight of the object i.e. elevator is moving upward
we can write
