Answer:
def insSort(arr):
ct=0;
for i in range(1, len(arr)):
key = arr[i]
j = i-1
while j >=0 and key < arr[j] :
arr[j+1] = arr[j]
j -= 1
ct=ct+1;
arr[j+1] = key
return arr,ct;
print(insSort([2,1]))
Output of the program is also attached.
Answer:
An embedded system is a part of a larger system which has either one or a limited number of dedicated functions.
It doesn't require much power to run and is cheap to make and design.
Explanation:
Examples include: cars, microwaves, traffic lights, washing machines, phones etc
Answer:
People in households buy goods and services from businesses in an attempt to satisfy their unlimited needs and wants.
Explanation:
Households also sell their labor, land, and capital in exchange for income that they use to buy goods and services that firms produce.
You might propose guest worker program for your country if you wanted to hire a large number of manual laborers from neighboring countries to build a large dam or canal, with the understanding that they would not be granted any other privileges or legal status in your country, after the project is finished.
<h3>What is
guest worker program?</h3>
- In the absence of a ready supply of replacement workers, guest worker programs enable foreign workers to live and work temporarily in a host nation.
- For temporary employment lasting less than a year, the United States now offers two guest worker programs: the H-2A program for temporary agricultural work and the H-2B program for temporary non-agricultural work.
- Guest workers will be eligible for all federal programs, including Social Security and Medicare, if they are granted green cards. Additionally, low-skilled, low-income guest workers bring along their spouses and kids, who are enrolled in local schools and qualify for a variety of state benefits.
To learn more about program refer to:
brainly.com/question/20534047
#SPJ4
Answer:
B
Explanation:
I took the test got a 100