Question
A man donated 10%, 16% and 28% of his income to three
NGOs βAβ, βBβ and βCβ, respectively. They spent 75%, 80% and 50% of respective sums received by them. If total sum left with three NGOs is Rs. 5910, then find the income of man.Solution
Let the income of the man be Rs. x Therefore, sum donated to NGO βAβ = Rs. 0.10x Sum left with NGO βAβ = 0.25 Γ 0.10x = Rs. 0.025x Sum donated to NGO βBβ = Rs. 0.16x Sum left with NGO βBβ = 0.2 Γ 0.16x = Rs. 0.032x Sum donated to NGO βCβ = Rs. 0.28x Sum left with NGO βCβ = 0.5 Γ 0.28x = Rs. 0.14x According to the question, 0.025x + 0.032x + 0.14x = 5910 Or, 0.197x = 5910 Or, x = 5910/0.197 = 30000 Therefore, income of man = Rs. 30000
What does $# represent in a shell script?
Which signal is sent by default when using kill without arguments?
Which operator enables process substitution in bash (e.g., diff <(cmd1) <(cmd2))?
Which construct allows embedding a block of text in shell scripts as input?
Which operator is used to append output to a file?
In bash, which command is used to trap and handle signals like SIGINT?
Named pipes (FIFOs) are created using:
Which operator enables process substitution?
Which command is used to display the current working directory?
A Here-Document in shell is denoted by: