Answer:
#include<iostream>//library inclusion
using namespace std;
int main()
{
int userInput;
do//start of do while loop
{
cout << "Enter a number less than a 100" << endl;
cin >> userInput;
if (userInput < 100) //condition
{
cout << "YOu entered less than a hundred: " << userInput << endl;
}
else
{
cout << "your number is greater than 100" << endl;
}
} while (userInput > 100);//condition for do while
return 0;//termination of int main
}
Explanation:
The program has been commented for you. The do-while loop enters the first loop regardless of the condition. Then after the first iteration, it checks for the condition. If the condition is being met, it will iterate through, again. Otherwise it will break out of the loop and land on the "return 0;" line. Which also happens to be the termination of the program in this case. The if-else condition is used for the user to see when prompted.
I think it is the model ET-2. Not quite sure.
Answer:
hello your question is incomplete attached is the complete question and solution
answer : The solution is attached below
Explanation:
Below is a program named Derivations.java that creates an array with the deviations from average of another array.