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:
Healthy plant growth follows from sufficient water.
Contrapositive: If water is insufficient, then there isn't healthy plant growth
Increased availability of information is a necessary condition for further technological advances
Contrapositive: Absence of further technological advances implies decreased availability of information.
Errors were introduced only if there was a modification of the program.
Contrapositive: If there wasn't any modification of the program then error was not introduced into the program
Fuel savings implies good insulation or storm windows throughout.
Contrapositive: The absence of good insulation or storm windows throughout implies that there is no fuel savings.
Explanation:
A contrapositive statement is formed from a conditional statement as we can see from the answers above.
In a contrapositive statement, we just interchange the hypothesis and the conclusion of the inverse statement.
This implies that, when the converse of the statement is true, then the inverse of the statement is also logically true.
Yes, they are by law of America
Answer:
The answer to this question is given below in the explanation section.
Explanation:
This question is about what is a good analogy for explaining the actions of a compiler? The correct option is <u> automatic programming of kitchen devices
.</u>
<u>
</u>
a hybrid ability of a car to use multiple energy sources (false)
this analogy is not correctly mapped on the compiler, becuase the compiler can be designed only for one type of language, for example, the program that calculates the average of students number can be easily programmed in C++ and in C#. But you cannot compile the C# program in C++ compiler and vice versa.
a street map of a local subdivision (false)
Because you can design a compiler for a not specific subdivision of programming.
an interpreter who speaks several languages
it is not an analogy, however, an interpreter can handle only one type of language.
an automatic programming of kitchen devices (true)
This is a good analogy of compiler because you give input to the device and that device based on your input gives you back an output. Similarly, you give input to the compiler in form of language syntax, and it automatically give you output based on your input.
It seems that you have missed the necessary options for us to answer this question so I had to look for it. Anyway, here is the answer. The protocol that supports the encryption and decryption of e-mail messages is this: <span>Secure Multipurpose Internet Mail Extensions (S/MIME) and Pretty Good Privacy (PGP). Hope this helps.</span>