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.
Oil is less dense than water so it tends to float on the top of the water. Hope this Helps!
Put the object or material on a scale to figure out<span> its mass. 3. Divide the mass by the volume to </span>figure out the density<span> (p = m / v). You may also need to know </span>how to calculate<span> the volume of a </span>solid s<span>o use the formula</span>
Answer:
800 meters per hour
Explanation:
800 meters per hour is the average speed of an airplane that travels from New York to Los Angeles, a total distance of 4800 km, in 6.0 hours.