Answer:
Following are the program in the C++ Programming Language:
#include <iostream>//header file
using namespace std;//namespane
//set main method
int main() {
int a[100]; //set integer type array variable
int value, i = 0; //set integer variables
cout<<"Enter less than 0 to exit:"<<endl; //message for exit
cout<<"Enter the integer numbers:"<<endl; //message to enter numbers
do{ //set do while
cin>>value; //get input from the user
a[i++] = value; //append elements in array
}while(value>=0);
i--;
cout<<"\nArray are:"<<endl;//message for array
for(int k = 0;k<i;k++){ //set for loop
cout<<a[k]<<" "; //print array
}
return 0;
}
<u>Output</u>:
Enter less than 0 to exit:
Enter the integer numbers:
1
2
3
4
5
-1
Array are:
1 2 3 4 5
Explanation:
Here, we set the integer data type main method "main()" and inside it:
- we set integer type array variable with index value 100.
- we set two integer type variable "value" and "i" initialize value 0.
- we set the do-while loop in which we get the input from the user and and append in the array and pass condition if the value is greater then equal to 0.
- Finally, set for loop and print the elements of an array.
Answer:
improving the current process before automating it
The correct answer is B. false.
Determining which color goes first is not random at all - it is a rule in chess that the White player will always start the game first, and will then be followed by the Black player.
Answer:
Creates order and harmony → <em>color</em>
Creates an emotional impact → <em>texture</em>
Brings a feeling of depth to a design →<em> form</em>
Draws or minimizes attention → <em>space</em>
Divides space and redirects the eye → <em>shape</em>
Explanation:
The visual element that creates order and harmony is <em>color</em>
Color can be used to create visible patterns that can be recognized as being in harmony or disagreement
The visual element that creates emotional impact is <em>texture</em>
Texture can be used to convey either the emotions of the object or the artist
The visual element that brings a feeling of depth to a design is<em> form</em>
Form is used to present a 3-D appearance of an art, and therefore, it is used to show depth of a 2-D drawing
The visual element that draws or minimizes attention is <em>space</em>
The arrangement, location, and size of the space occupied by an object can be used to draw or minimize attention
The visual element that divides space and redirects the eye is <em>shape</em>
Shape is used to divide space into areas easily recognizable by the eye
Answer:
CLS
INPUT"Enter any three numbers";a,b,c
IF a>b AND a>c THEN
PRINT a;"is the greatest"
ELSEIF b>a AND b>c THEN
PRINT b;"is the greatest"
ELSE
PRINT c;"is the greatest"
ENDIF
END