Answer:
#Section 1
lst= []
lstNo=int(input("Enter even number of elements in List: "))
for i in range(0, lstNo):
pr=int(input(": " ))
lst.append(pr)
print(lst)
#Section 2
nlst=[]
dlst=[]
n =len(lst)
i=0
while (i < n/2):
nlst.append(lst[i])
i = i+1
j = n-1
while j >= n/2:
dlst.append(lst[j])
j = j-1
dlst.sort()
for a in range(len(dlst)):
nlst.append(dlst[a])
print(nlst)
Explanation:
#section 1:
An empty list is declared to hold the list inputs by the user <em>lst= []
</em>
The program then prompts the user to enter an even number of elements that will be contained in the list.
The for loop is used to iterate from zero(0) to the number of elements stated, in order to get the input that is appended to the list.
lastly, the list is printed out.
#Section 2:
In this section two new lists are created to hold one half of the value respectively.
The first list collects the first half of the list using a while loop and stores it, it does not perform any sorting on it.
The second list collects the second half using a while loop and sorts the list using the<em> .sort() </em>method which arranges elements in an ascending order.
Finally, the second list that has been sorted is added to the first and the result is printed to the screen.
A picture of how the code will run has been attached.
Answer:
Explanation:
In my work environment, we have a small network that is built using three main pieces of hardware. These are a small server, a modem, and a router. Each of these pieces of hardware serves a different role in the network.
The Server holds all of the information that can be accessed by anyone connected to the network. This includes adding and pulling information from it.
The Modem is what sends and grabs information to and from the internet, as well as analyzes it and decrypts it so that it can be read.
The Router grabs the information from the Modem and distributes it to the correct user device that is connected to the network. This device is a hub where all personal devices can connect to the network.
The answer is "<span>To allow a DHCP server to request a DNS server to update or create a record.</span>"
Hope this helped and have a nice day!!
Answer:
Excite
Explanation:
The 4E framework objectives are:
EXCITE: customer are excited with relevant offer
EDUCATE: customer are educated about ongoing offers
EXPERIENCE: customer experience is improved with regards to the product
ENGAGE: customer is engaged to share feedback.
The use of location-based software application will help Jason to be excited. In this case Jason will be excited about the offer.
Answer:
In the country of Gnut
The universal health insurance program that is likely to better allow Gnuti citizens to smooth consumption is:
program Y that would pay only for catastrophic illnesses and injuries.
Explanation:
Program Y is a better option for Gnuti citizens to smooth consumption. The reason is that catastrophic injuries and illnesses already account for two-thirds of the total health care costs in the country. These injuries and illnesses cost more income variability to the citizens than other health care expenses. With the government sponsoring program Y, the citizens will be insulated from consumption patterns caused by income variability. Consumption smoothing creates the needed balance between spending and saving during the different life phases for the citizens of Gnut.