Answer:
#include <iostream>
using namespace std;
int main()
{
int input = 0;
int count = 0;
int sum = 0;
int sumNegative = 0;
while (true) {
cout << "Enter a number: ";
cin >> input;
if (input == 0) break;
count++;
sum += input;
if (input < 0) {
sumNegative += input;
}
}
cout << "Count of the numbers: " << count << endl;
cout << "Sum of all the numbers: " << sum << endl;
cout << "Sum of the negative numbers: " << sumNegative << endl;
}
Explanation:
Your requirements regarding the sum and the negative numbers was a bit vague so I just did something you can probably adjust easily to your liking.
Answer:
Yes, because the upper limit is less Than 8 minutes
Explanation:
According to the empirical formula :
68.26% of data lies within 1 standard deviation from the mean;
Hence,
Mean ± 1(standard deviation)
The sample mean and sample standard deviation of the given data is :
Sample mean, xbar = Σx / n = 546 / 100 = 5.46
Sample standard deviation, s = 2.475 (Calculator)
The interval which lies within 68.26% (1 standard deviation is) ;
Lower = (5.460 - 2.475) = 2.985
Upper = (5.460 + 2.475) = 7.935
(2.985 ; 7.935)
Since the interval falls within ; (2.985 ; 7.935) whose upper level is less than 8 means patients will have to wait less Than 8 minutes.
Answer:
Hello :)
Explanation:
Yesh i play Ro.blox, maybe u or me could friend each other