Question
Four years ago from now, the ages of 'A' and 'B' were
in the ratio 7:5, respectively. Ten years ago from now, the ages of 'A' and 'B' were in the ratio 2:1. Present age of 'A' is how much percent more than that of 'B'?Solution
Let the ages of 'A' and 'B', 10 years ago from now was, '2x' years and 'x' years, respectively. ATQ; {(2x + 6)/(x + 6)} = (7/5) Or, 5 X (2x + 6) = 7 X (x + 6) Or, 10x + 30 = 7x + 42 Or, 3x = 12 So, x = 4 So, present age of 'A' = 2 X 4 + 10 = 18 years And present age of 'B' = 4 + 10 = 14 years So, required percentage = {(18 - 14)/14} X 100 = 28.57%Â
How can you make a shell script executable?
Which command is used to display the current working directory?
What does the #!/bin/bash line at the beginning of a shell script indicate?
In shell scripting, how do you assign the string "Hello World" to a variable named `MESSAGE`?
Which command is used to display the number of lines in a file?
Extended globbing in bash allows:
What does the command `chmod 755 myscript.sh` set as permissions for `myscript.sh`?
In bash, what does trap 'echo Exit' EXIT do?
Which command is used to display the last few lines of a file?
Which ETL process step validates and cleans data before loading?