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.
When in doubt, decompose (break into smaller parts) the problem!
You need to display a GUI.
You need to accept input from two widgets and convert it integers.
You need to add a range of numbers.
You need to concatenate a string of what you're doing with the addition.
You need to display an answer in a widget and maybe redraw the window.
I've been having success copying the assignment into my source file and decomposing it as comments to frame out my program.
There are only 3 primary colors
Red, Blue and Green are the only Primary colors.
Answer: • Ensure that the video card is compatible with the expansion slot
• Install video drivers from CD and then install updated drivers from the internet
• Configure the PC to use the integrated graphics if available and needed
Explanation
Your question isn't complete as you didn't put the options but I got the options online and the correct answers have been provided.
The installation and configuration for the high-end video card suitable for gaming will include:
• Ensure that the video card is compatible with the expansion slot
• Install video drivers from CD and then install updated drivers from the internet
• Configure the PC to use the integrated graphics if available and needed