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;
}
<span>A _superkey___ is any key that uniquely identifies each row.</span>
Answer:
False.
Explanation:
Most computers have options that allow you to change the language if needed.
HISTSIZE is the environment variable affects the number of past commands used in the current shell session.
Answer:
scanf("%d %lf %c", &age, &pay, §ion);
Explanation:
To read the value in c program, the instruction scanf is used.
To read the integer value, use the %d format specifier in the scanf and corresponding variable name age with ampersand operator.
To read the double value, use the %lf format specifier in the scanf and corresponding variable name pay with ampersand operator.
To read the character value, use the %c format specifier in the scanf and corresponding variable name section with ampersand operator.