Answer:
Explanation:
Let's do this in Python, we will accept 2 arguments, the student name and an array of the 10 scores. The function would sort the scores out, get the last 6 scores, take the sum and finally out put them with the student name:
def total_six_highest_score(name, scores):
scores.sort()
highest_six_scores = scores[4:]
total_highest = sum(highest_six_scores)
return name, total_highest
Answer:
k = 3
Explanation:
K independent file servers
Average "uptime" of each server = 98%
<u>To achieve 99.99% probability by the intranet </u>
given that each server has an uptime = 98%
For the intranet to achieve 99.99% probability we have to choose more than 2 servers ( i.e. 3 servers ) incase any of the server goes down.
As each server posses an uptime of 98% it is almost impossible for all 3 servers to go down at the same time hence value of K = 3
Answer:
cubeVolume = toThePowerOf(cubeSide, 3)
Explanation:
The function toThePowerOf, receives two int arguments say, a and b, where a is the first argument and b is the second argument as follows:
toThePowerOf(a,b)
The function returns the first argument(a) raised to the power of the second argument (b) i.e a ^ b as follows:
toThePowerOf(a, b){
return a^b
}
In the call to the function, the first argument a, is replaced with the variable cubeSide and the second argument b is replaced with the value 3.
Hence, the returned result becomes cubeSide ^ 3 which is then stored in a variable cubeVolume as follows:
cubeVolume = toThePowerOf(cubeSide, 3)
Answer:
It allows the designer to focus on main logic without being distracted by programming languages syntax.
* Since it is language independent, it can be translated to any computer language code.
* It allows designer to express logic in plain natural language.
* It is easier to write actual code using pseudocode.
* Unlike algorithms, pseudocodes are concise so pseudocodes are more readable and easier to modify.
Explanation:
the fat car has a lot to pass on PC Dell is the only thing to