The three main components are the control unit, the immediate access store, and the arithmetic and logic unit.
It kind of depends on the intended language, but I can see the following mistakes:
- lines not terminated with a semicolon (but not all languages require this)
- while statement missing parenthesis, ie., while (num1 <= num2), also not required in all languages
- statements below the while statement must be grouped by curly braces
- num1+5 should be num1=num1+5 or num1 += 5
Output will be:
10
15
20
25
30
Answer:
Conditional formatting will enable her to highlight the records with sales in excess of 100.
Explanation:
On the ribbon home button select conditional formatting. A menu will open to select highlight type.Next select a conditional operator. You can select an operator from that menu or define your own custom rule.Next select column to apply rule on and specify color coding(green) for matched results.Press Ok and close window. Now all the cell with sale in excess will be highlighted in the color coding specified earlier(green).
The set and get functions are analogous to the accessor and mutator functions of C++. They are used in place of modifying a class member directly inside an object and making it public. An accessor function must be invoked in order to gain access to a private object member.
int mVal = winarr[0].getWidth();
for(int i = 1; i < winarrsize; i++)
{
if(winarr[i].getWidth() > mxVal)
mVal = winarr[i].getWidth();
}
cout << "The widest width is: "
<< mVal << endl;
By using encapsulation, a programmer can specify the labels for the data members and functions as well as whether or not other classes can access them. When data members are marked as "private," member functions of other classes cannot access or modify them which allows members access to these private data.
For a member such as Level, a function like GetLevel() returns the value of the member, while a function like SetLevel() gives it a value.
To learn more about Accessor Function click here:
brainly.com/question/13098886
#SPJ4
The active window
is the answer