Question
 If a student distributes sweets in the ratio of
1/2:1/3:1/4:1/5:1/6 among five of his friends A, B, C, D and E, then the total number (minimum) of sweets he should have is:Solution
1/2:1/3:1/4:1/5:1/6 Â LCM of the denominators are 2, 3, 4, 5, and 6=120 1 Friend A: Receives of 120/2 = 60 sweets 1 Friend B: Receives of 120/3 = 40 sweets 1 Friend C: Receives of 120/4 = 30 sweets 1 Friend D: Receives of 120/5 = 24 sweets 1 Friend E: Receives of 120/6 = 20 sweets =60+40+30+24+20=174 is incorrect since all ratios should have multiplied up to 174 as we set that as the total based on LCM. The mistake in my earlier calculation appears to be just in the statement, not in the math. Thus, the minimum number of sweets the student should have to distribute them precisely in these ratios is 120 sweets.
How do you access the value of a variable named `USERNAME` in a shell script?
Slowly Changing Dimension (SCD) is used to:
In shell scripting, how do you assign the string "Hello World" to a variable named `MESSAGE`?
What is the exit status code of a successfully executed command in Linux shell?
Which command is used to display the current working directory in a Unix-like operating system?
How can you make a shell script executable?
Which operator is used to append output to a file?
OLAP is primarily used for:
What does the command `chmod 755 myscript.sh` set as permissions for `myscript.sh`?
Which command is used to display the number of lines in a file?