Answer:
<em>C++</em>
////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v;
int n = 1;
while (n != 0) {
cout<<"Enter an integer, the input ends if it is 0: ";
cin>>n;
v.push_back(n);
}
cout<<endl;
///////////////////////////////////////////////////////////
int sum = 0;
int num_positives = 0, num_negatives = 0;
for (int i=0; i<v.size()-1; i++) {
if (v[i] > 0)
++num_positives;
else
++num_negatives;
sum = sum + v[i];
}
//////////////////////////////////////////////////////////
cout<<"The number of positives is "<<num_positives<<endl;
cout<<"The number of negatives is "<<num_negatives<<endl;
cout<<"The total is "<<sum<<endl;
cout<<"The average is "<<(float)sum/(v.size()-1);
///////////////////////////////////////////////////////////
return 0;
}
Answer:
The answer to this question is given below in the explanation section. The correct answer is B.
Explanation:
The purpose behind to explore an integrated development environment is to learn more about the features of the environment.
So the correct answer is B.
For example, you can use visual studio to build asp.net application using c#, then you need to explore what features visual studio offering to you.
However, other options are incorrect. Because, you can learn more about syntax, error handling, and abstraction in the programming language, not in the IDE.
Answer:
10/10
Explanation:
i love dogs. he's a super cute dog and i love him without even knowing him
Answer:
In a bumper-to-bumper traffic, when the engine starts overheating the situation can be handled by tapping the accelator which will revive the engine.
Explanation:
Overheating of engine can be due to many reasons. But one should know what to do when an engine overheats in a traffic. Bumper-to-bumper traffic is when the cars are so close in traffic that they touch each other. This usually happens when there's a traffic for a long time or on very busy lane. During summer times, it is important to keep checking the engine temperature to avoid any problem.
When one is stuck in bumper-to-bumper traffic with overheating engine, then there are some meausres that one can take. They are:
- To put the car on park or neutral mode of driving and tap the accelator which will revive the engine.
- The heat can be disperse by rolling down the window and turn the heater up. It will disperse the heat.
Answer:
the answer might be 2......