Answer:
Given
The above lines of code
Required
Rearrange.
The code is re-arrange d as follows;.
#include<iostream>
int main()
{
int userNum;
scanf("%d", &userNum);
if (userNum > 0)
{
printf("Positive.\n");
}
else
{
printf("Non-positive, converting to 1.\n");
userNum = 1;
printf("Final: %d\n", userNum);
}
return 0;
}
When rearranging lines of codes. one has to be mindful of the programming language, the syntax of the language and control structures in the code;
One should take note of the variable declarations and usage
See attachment for .cpp file
Answer:
(D) All of these answers are correct.
Explanation:
Technical communication is the transmission of any specialized information, be it scientific reports, medical procedures, and any other professional information. Technical information are passed for a specific a purpose are factual, precise, concise and clear. An electrical engineer filling out a standardized form, a webmaster revising a company web page, a company secretary writing a letter to a customer and a manager preparing an oral presentation are all conveying technical information.
Answer:
AVERAGE
COUNT
SUM
MAX
Explanation:
The functions that may be used with positional arguments include:
AVERAGE
COUNT
SUM
MAX
The basic functions formulae include SUM, AVERAGE, COUNT, MAX and MIN.
SUM: This is the sum total of all the numbers in the rows.
COUNT: This is the used to count the range of cells that contains numbers.
AVERAGE: This is the average of all the numbers in the rows.
MIN: This is the lowest number in the rows.
MAX: This will return the highest number that is found in the set of values.
It should be noted that the COUNTIF is not used with positional arguments.