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:
Click the AutoSum button on the Standard toolbar, then press ENTER
Explanation:
Excel offers a range of options to perform various mathematical operations. When numeric values are being inputted into cells, either columns or rows, the AutoSum function which is located in the home Taskbar allows for a very fast addition of the total values in the column or rows. Once the cell after the last cell value is selected, the AutoSum function is selected and the ENTER button is pressed, this will use the sum function of excel to quickly provide the total sum of all the values in the column.
Answer:
The answer is "Starting address"
Explanation:
Arrays are a type of data structure that can store a fixed size successive assortment of components of a similar kind. An Array is used to store an assortment of data, yet it is regularly more valuable to consider a cluster an assortment of factors of a similar sort.
Rather than proclaiming singular factors, for example, number0, number1, ..., and number99, you declare one Array variable, for example, numbers and use numbers[0], numbers[1], and ..., numbers[99] to speak to singular factors. A particular component in a cluster is gotten to by a list.
All Arrays comprise of bordering memory areas. The most minimal address compares to the first element and the most highest address to the last element.
Answer: PowerPoint has a free, built-in service for broadcasting online.
Explanation:
The statement that's true about the broadcast of a slideshow online is that PowerPoint has a free, built-in service for broadcasting online.
Option 1 is wrong as all transitions are not properly displayed to the audience when broadcasting online.
Option 2 is wrong as broadcasting as slideshow online is an option for most PowerPoint users.
Option 3 is wrong because when broadcasting online, third party desktop sharing software isn't necessarily an option and it isn't a must that it must be used.
Therefore, the correct option is 4.
Answer:
The program in Python is as follows:
apples = int(input("Apples: "))
people = int(input("People: "))
apples%=people
print("Remaining: ",apples)
Explanation:
This gets the number of apples
apples = int(input("Apples: "))
This gets the number of people to share the apple
people = int(input("People: "))
This calculates the remaining apple after sharing the apple evenly
apples%=people
This prints the calculated remainder
print("Remaining: ",apples)