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: 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.
A “U” pipe is initially filled with water on one section of
the pipe and it is also filled with oil on the other section
of the pipe. If the height of oil is 1.05cm and the height of
the water is 0.9 cm, what is the density of oil?
Using example describe and discuss three learning unit theoriws
A special unit is formed within the police force of N policeman,such that no 2 policeman have equal ranking. The rank of a policeman is depicted by the number of
stars in his badge. There are a total of N policeman each having a badge containing some stars.
your task is to calculate the minimum number of extra starsthat need to be bought in order to meet the above constraint.
Note: A star cannot be removed from a badge.
Input Specification:
input1: N denoting the number of policeman in the special unit.
input2: An array of N elements[A1,A2,..AN] where Ai denotes the number of stars on the badge Ai.
Output Specification:
Your function should return the minimum number of extra stars required.
The joint PDF of the random variables f(x,y)=8xy,0<x<1, 0<y<x
f(x,y)=8xy,0<x<1, 0<y<x. Find the marginal probability density function of Y.
A steel cable holds a 200 kg shark tank 3 meters below
the surface of saltwater. If the volume of water displaced
by the shark tank is 0.1 m^3, what is the tension in the
cable? Assume the density of saltwater is 1025 kg/m^3
1. Explain why an investor would want to invest in financial assets as opposed to investing in real assets
You have a block of a mystery material, with a length (l)
of m long, 0.11 m wide and 0.25 m thick. Its mass is 1155 grams.
a) What is its density?
b) Will it float in a tank of water, or sink? what
percentage of it is sticking out of the water?
given value: 0.38
Rose wants to buy a car on hire purchase for N$75,000.00 at the rate of 11% p.a. repayable using monthly installments for a period of 3 years and 10 months. (No deposit was required). Use the given information to calculate the:
a. Total amount of money expected to be paid to the Hire Purchase Company over the years. (5)
b. Monthly installment to be paid by Rose (5)
1. Explain the benefits of investing in financial assets?