Informal settlements possess strengths and pose a threat to the sustainability of cities and human settlements globally. Discuss this statement while demonstrating its relevance to South African cities.
the functions of each layer of the osi model and protocols used
10.A reservoir of carbon tetrachloride has a mass of 500Kg
and a volume of 0.315 m^3. Find:
a) Weight of carbon tetrachloride
b) Mass density of carbon tetrachloride
c) Specific weight of carbon tetrachloride
d) Specific gravity of carbon tetrachloride
The specific gravity of a liquid is 0.79 kg/m^3. Calculate
the mass density and the specific weight of the liquid.
Gold, whose mass is 20 Kg is in kerosene having an
upward force of 30 N. If the acceleration due to gravity is
10 m/s2 and the density of kerosene is 800 Kg/m3,
then determine the density of gold.
Let g(x, y) = y x2+y 2 . (a) Show that g is harmonic in D = {(x, y) : x 2 + (y + 3)2 < 4}. (b) How can the function f(z) = 1 z be used to show that g is harmonic in D?
One of the streets in your city has a total of L street lights. Each light i covers the street from
Xi to Yi distance. Find the length of street covered with light.
Input Specification:
input1: L, denoting the number of street lights.
input2: An array of L* 2 elements. For each row i, (Xi, Yi) denote that the
street light i covers the distance from Xi to Yi.
Output Specification:
Your function should return the length of the street covered with light.
Example 1:
input1: 1,
input2: {{5,10 } }
Output: 5
A “Y”-shaped tube is inserted upside down so that the left
foot and right foot are immersed in two kinds of liquid.
After both feet are immersed in the liquid, then the top of
the Y pipe is closed with the finger and pulled upwards,
so that the two legs of the Y pipe are filled with a column
of different high-density liquids. If the density of the first
liquid is 0.80 gram.cm-3 and the second density is 0.75
gram.cm-3, if the first liquid column has a high of 8 cm,
then determine the height difference between the two
liquid columns on U pipe.
N number of people participated in a coding marathon where they were asked to solve some problems. Each problem carried 1 mark and at the end of the marathon,
the total marks that each person achieved was calculated.
As an organizer, you have the list of the total marks that each person achieved. You have to calculate the sum of the marks of top K scorers from the list.
Input Specification:
input1: N, Total number of participants
input2: K, Top scorers
input3: An array of length N with the scores of all N participants
Output Specification:
Return S, sum of the marks of top K scorers from the list.
Example 1:
input1: 4
input2: 2
input3: {4, 1, 2, 5}
Output: 9
Explanation: Top 2 scores are 5 and 4. Sum = 5+4=9.
Example 2:
input1: 4
input2: 3
input3: {4, 3, 6, 1}
Output: 13
Explanation: Top 3 scores are 6, 4 and 3. Sum = 6+4+3=13.
All 77 rooms in a motel will be rented each night if the manager charges $40 or less per room. If he charges $(40+z) per room, then 2z rooms will remain vacant. If each rented room costs the manager $7 per day and each unrented room $2 per day in overhead, how much should the manager charge per room to maximise his profit?