Question
A started a business with an investment of Rs 16,000.
After 2 months B joins in with 5/8 of the amount that A invested and A withdraws Rs 4,000. After 2 more months, C joins with Rs 12,000 and A again withdraws Rs 2,000. After an year, If C received Rs 3,120 as his share then what was the total profit?Solution
Ratio equivalent capitals of A, B and C for 1 year = (16,000×2+ 12,000×2+10,000×8) : ( 5/8× 16,000 ×10)∶(12,000×8) = (32,000+24,000+80,000) ∶1,00,000∶96,000 = 1, 36, 000 : 1,00,000 : 96,000 = 136 : 100 : 96 = 34:25:24 If the total profit at the end of the year be Rs x, then 24x/((34+25+24)) = 3,120 ⇒ 24x = 3,120 × 83 ⇒ x = (3,120 ×83)/24 = Rs 10,790
Which symbol is used to make a script executable in Linux?
If a program needs to read data from a file, which system call would it typically use?
How do you access the value of a variable named `USERNAME` in a shell script?
What does $# represent in a shell script?
Named pipes (FIFOs) are created using:
Which symbol is used for logical AND in shell scripting?
In shell scripting, which command is used to read input from the user?
How can you pass command-line arguments to a shell script?
Which operator is used for string equality comparison within `test` or `[` commands in shell scripting?
Which command is used to display the current working directory in a Unix-like operating system?