Answer:
The solution code is written in Python 3.
- def convertDate(date_string):
-
- date_list = date_string.split("/")
-
- for i in range(0, len(date_list)):
- date_list[i] = int(date_list[i])
-
- return date_list
-
-
- print(convertDate('06/11/1930'))
Explanation:
Firstly, create a function convertDate() with one parameter, <em>date_string</em>. (Line 1).
Next, use the Python string <em>split()</em> method to split the date string into a list of date components (month, day & year) and assign it to variable <em>date_list</em>. (Line 3) In this case, we use "/" as the separator.
However, all the separated date components in the <em>date_list</em> are still a string. We can use for-loop to traverse through each of the element within the list and convert each of them to integer using Python<em> int() </em>function. (Line 5 - 6)
At last return the final date_list as the output (Line 8)
We can test our function as in Line 11. We shall see the output is as follow:
[6, 11, 1930]
Answer:
see explaination
Explanation:
#include<stdio.h>
/* Your solution goes here */
//Impllementation of SwapArrayEnds method
void SwapArrayEnds(int sortArray[],int SORT_ARR_SIZE){
//Declare tempVariable as integer type
int tempVariable;
if(SORT_ARR_SIZE > 1){
tempVariable = sortArray[0];
sortArray[0] = sortArray[SORT_ARR_SIZE-1];
sortArray[SORT_ARR_SIZE-1] = tempVariable;
}
}
int main(void) {
const int SORT_ARR_SIZE = 4;
int sortArray[SORT_ARR_SIZE];
int i = 0;
sortArray[0] = 10;
sortArray[1] = 20;
sortArray[2] = 30;
sortArray[3] = 40;
SwapArrayEnds(sortArray, SORT_ARR_SIZE);
for (i = 0; i < SORT_ARR_SIZE; ++i) {
printf("%d ", sortArray[i]);
}
printf("\n");
return 0;
}
Please go to attachment for the program screenshot and output
Answer:
WLAN's or Wireless LAN Units have 2 main modes of operation
Explanation:
The Two Main modes of Operation are the following
<u>Infrastructure Mode:</u> in this mode the main WLAN unit becomes the main connection point in which all devices are connected to and the main unit provides an internet connection to all the devices connected to it.
<u>Ad Hoc Mode:</u> in this mode devices transfer data from one another back and forth without permission from a base unit.
Some WLAN units will also include 2 extra modes of operation called Bridge and Wireless Distribution System (WDS).
<u>Bridge Mode:</u> this mode allows the base unit to act as an intermediary and bridge two different connection points. Such as bridging a wired connection with a wireless one.
<u>WDS Mode:</u> this mode uses various access points to wirelessly interconnect devices to the internet using repeaters to transmit connections. It can provide internet to both wired and wireless clients.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Answer:
The answer is : When there is a need to copy a formula and have the references update based on the new location
Explanation:
<em>I often use this function in any spreadsheet document. Imagine, you have thousands of data in a single sheet. And you inserted one row or column. Normally, you have to update EACH CELL's formula. Imagine the work load and the effort you need to exert. But when the single cell updates all the cell's reference, formula will be affected and you don't need to re update all the cells. It saves you time and effort and worries.</em>