Because it is the back-end programming. It is the basis of all of the other computer languages and allows the computer to function.
Answer:
<em>C++</em>
////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v;
int n = 1;
while (n != 0) {
cout<<"Enter an integer, the input ends if it is 0: ";
cin>>n;
v.push_back(n);
}
cout<<endl;
///////////////////////////////////////////////////////////
int sum = 0;
int num_positives = 0, num_negatives = 0;
for (int i=0; i<v.size()-1; i++) {
if (v[i] > 0)
++num_positives;
else
++num_negatives;
sum = sum + v[i];
}
//////////////////////////////////////////////////////////
cout<<"The number of positives is "<<num_positives<<endl;
cout<<"The number of negatives is "<<num_negatives<<endl;
cout<<"The total is "<<sum<<endl;
cout<<"The average is "<<(float)sum/(v.size()-1);
///////////////////////////////////////////////////////////
return 0;
}
Assuming Victoria is using Adobe
Photoshop to create her brochure, below are the steps she is required to
follow.
She should first open the image on
Photoshop, click on the image option and select duplicate just in case the
resized image is not what she wants.
Still on the image option, she
should select Image size. A screen will pop up at this point, indicating the
image’s current size. For the purposes of image resizing, Victoria should
select Pixel dimensions category.
She should be able to type her preferred
dimensions for both the width and height. She should make sure ‘Constrain
Proportions’ is unchecked to be able to type in separate values.
If she decides to use the photo editing
program, she can simply click on the image, and if resize handles appear around
it, she can click and drag those to the desired size.
a.on , off
In most computer processors, electron movement is controlled by tiny switches that turn this flow of electricity on and off...zero represents off and one represents on
Answer:
public Clock(int hours) {
this.hours = hours;
}
Explanation:
In Java programming language, Constructors are special methods that are called to initialize the variables of a class when a new object of the class is created with the new keyword. Consider the complete code for the class below;
<em>public class Clock {</em>
<em> private int hours;</em>
<em> public Clock(int hours) {</em>
<em> this.hours = hours;</em>
<em> }</em>
<em>}</em>
In this example above, an object of this class can created with this statement Clock myclock = new Clock(6); This is a call to the constructor and passes a parameter (6) for hours