Question
If average weight of a class is ‘y’ kg. If a
new student weighing 21 kg took admission, then the average weight is increases by 1 kg. If the weight of this student had been 16 kg then the average weight of the class would have decreased by 2 kg. Find ‘y’.Solution
Let the number of students in a class be x. Therefore, the total weight = xy According to question, => (x + 1) (y + 1) = xy + 21 => xy + x + y + 1 = xy + 21 => x + y = 20 ------ (i) If the weight of this student had been 18 kg then the average weight of the class would have decreased by 2 kg. => (x + 2) (y – 2) = xy + 16 => xy + 2y – 2x – 4 = xy + 16 => y – x = 10 ------ (ii) Solving (i) and (ii), we get => 2y = 30 => y = 15
What is the primary advantage of using a snapshot-based backup method over traditional backup methods?
In which part of a function are local variables typically declared?
Which is correct with respect to the size of the data types in C?
In syntax-directed translation, what are attributes associated with?
What is the scope of a variable declared as "static" inside a function?
In a compiler, keywords of a language are recognized duringÂ
Which data structure represents a hierarchical relationship between elements?
What is the primary advantage of using public key cryptography over symmetric key cryptography?
What is the purpose of the "GROUP BY" clause in an SQL query?
Which application layer protocol is primarily used for securely transferring files over a network?