Solution :
Public Function Is a Leap_Year(Year As_Integer) As Integer
'Dim Tor_F for local variable declaring if value is t/f.
Dim TorF As For Boolean
'Pre conditions: Year > 1581 and Year < 3000
If Year > 1581 And Year <> 1700 Or 1800 Or 1900 Then
IsLeapYear = Year / 4
Else
IsLeapYear = False
TorF = False
End If
End Function
what is the difference between internet and intranet
Answer:
The internet is a globally connected networks of computers that enables people to share information and communicate with each other.
An intranet is a local or restricted network that enables people to store, organize and share information within an organization
Your colleague developed a function, which is supposed to reverse an array of integers, e.g., {1, 5, -10, 7, 23} => {23, 7, -10, 5, 1}. Test cases show that the function does not work correctly. Please look at the following code and identify all the troubles. Please specify which part(s) of the code will not work and explain why not.
void ReverseArray(int arr[], size_t elements_no) {
size_t i = 0; int x = 0; for (i = 0; i <= elements_no; i++)
{ x = arr[i]; arr[i] = arr[elements_no - i]; arr[elements_no - i] = x; }
}
Answer:
The parts of the code which makes the program not to work properly is:
1. for (i = 0; i <= elements_no; i++)
2. arr[i] = arr[elements_no - i];
3. arr[elements_no - i] = x;
The correction of the above lines are:
1. for (i = 0; i <= elements_no/2; i++)
2. arr[i] = arr[elements_no - i-1];
3. arr[elements_no - i-1] = x;
Explanation:
It should be noted that the code end up not reversing the array. This happens because the programmer iterates through all the array elements.
i.e.
1. for (i = 0; i <= elements_no; i++)
This will result in the original array.
To solve this problem, the iteration has to stop at the middle element and the correction is:
1. for (i = 0; i <= elements_no/2; i++)
Also, to swap the individual elements 1 has to be subtracted from each array index. So, the following lines:
2. arr[i] = arr[elements_no - i];
3. arr[elements_no - i] = x;
is corrected to:
2. arr[i] = arr[elements_no - i-1];
3. arr[elements_no - i-1] = x;
See attachment for complete corrections
An algorithm can have an output and an outcome
A) True
B) False
A _is a short descriptive label that you assign to webpages, photos,
videos, blog posts, email messages, and other digital content so that it is
easier to locate at a later time. It is also the name for part of a coding
element in HTML. *
classified Computer by their age
Answer:
The answer is below
Explanation:
Classification of computers by age are the following:
First generation from 1940 to 1956. For example, ENIAC using a vacuum tube
Second generation from 1956 to 1963. For example, IBM 7070 using transistor
Third generation from 1964 to 1971. For example, this type of computers use an Integrated circuit
Fourth generation from 1972 to 2010. For example, IBM 5100 using a microprocessor.
Fifth-generation from 2010 to present For example IBM Watson, using Artificial intelligence.
What is the index of 7 in this list?
[5, 6, 10, 7, 3, 2.51]
This is a straightforward technique for creating index numbers. In this, the sum of the prices for various commodities in the current year is divided by the corresponding base year price total, and the result is multiplied by 100. p = the sum of prices for the same commodities in the base year. (in Rs) 0 p (in Rs.) Thus option E is correct.
What are the index of number?In mathematics, an index (or indexes) is the power or exponent that is added to a number or variable. For instance, the index of 2 in the number 24 is 4. Indexes is the plural form of the word. Constants and variables are concepts found in algebra.
A statistical tool for determining the amount of changes in a group of connected variables is an index number. It is derived from diverging ratios, from which it depicts the overall trend. It is a measurement of the normal change in a group of related variables between two distinct scenarios.
Therefore, 3 is the index of 7 in this list.
Learn more about index here:
https://brainly.com/question/4692093
#SPJ2
set screw compression and indenter are all types of
a. compression couplings.
b. threaded connectors.
C. rain-tight fittings.
D. threadless connecters and couplings.
nAnswer:
A.
Explanation:
The compression couplings can be defined as a set of screw, compression, and indenter. A compression fitting is a type of coupling used to connect pipes. A compression couplings is used to connect fixtures and tubings.
It contains screw, compression, and indenter. Therefore, option A is correct answer.
Answer:
dude above me capping its threadless connectors stay strong king
Explanation:
PHOTOSHOP IS A GRAPHICS EDITING PROGRAM CREATED WITH IMAGES KNOWN AS________
Answer:
Adobe
Explanation: