Menu Close

Category: Others

In-C-What-is-the-sections-doing-and-What-is-the-output-from-the-sections-below-a-int-p-o-for-int-i-1-i-lt-30-i-if-i-5-0-p-i-cout-lt-lt-p-lt-lt

Question Number 85222 by Umar last updated on 20/Mar/20 $$\mathrm{In}\:\mathrm{C}++ \\ $$$$\mathrm{What}\:\mathrm{is}\:\mathrm{the}\:\mathrm{sections}\:\mathrm{doing}\:?\:\mathrm{and} \\ $$$$\mathrm{What}\:\mathrm{is}\:\mathrm{the}\:\mathrm{output}\:\mathrm{from}\:\mathrm{the}\:\mathrm{sections}\: \\ $$$$\mathrm{below}\:? \\ $$$$\mathrm{a}.\:\mathrm{int}\:\mathrm{p}=\mathrm{o}; \\ $$$$\:\:\:\:\:\mathrm{for}\:\left(\mathrm{int}\:\mathrm{i}=\mathrm{1};\:\mathrm{i}<=\mathrm{30};\:\mathrm{i}++\right)\left\{\right. \\ $$$$\:\:\:\:\:\mathrm{if}\:\left(\mathrm{i\%5}==\mathrm{0}\right) \\ $$$$\:\:\:\:\:\:\mathrm{p}+=\mathrm{i};\:\: \\…

Two-swimmers-leave-point-A-on-one-bank-of-the-river-to-reach-point-B-lying-right-across-the-other-bank-One-of-them-crosses-the-river-along-the-straight-line-AB-while-the-other-swims-at-right-angle-to

Question Number 19654 by Tinkutara last updated on 13/Aug/17 $$\mathrm{Two}\:\mathrm{swimmers}\:\mathrm{leave}\:\mathrm{point}\:{A}\:\mathrm{on}\:\mathrm{one} \\ $$$$\mathrm{bank}\:\mathrm{of}\:\mathrm{the}\:\mathrm{river}\:\mathrm{to}\:\mathrm{reach}\:\mathrm{point}\:{B}\:\mathrm{lying} \\ $$$$\mathrm{right}\:\mathrm{across}\:\mathrm{the}\:\mathrm{other}\:\mathrm{bank}.\:\mathrm{One}\:\mathrm{of} \\ $$$$\mathrm{them}\:\mathrm{crosses}\:\mathrm{the}\:\mathrm{river}\:\mathrm{along}\:\mathrm{the}\:\mathrm{straight} \\ $$$$\mathrm{line}\:{AB}\:\mathrm{while}\:\mathrm{the}\:\mathrm{other}\:\mathrm{swims}\:\mathrm{at}\:\mathrm{right} \\ $$$$\mathrm{angle}\:\mathrm{to}\:\mathrm{the}\:\mathrm{stream}\:\mathrm{and}\:\mathrm{then}\:\mathrm{walks}\:\mathrm{the} \\ $$$$\mathrm{distance}\:\mathrm{that}\:\mathrm{he}\:\mathrm{has}\:\mathrm{been}\:\mathrm{carried}\:\mathrm{away} \\ $$$$\mathrm{by}\:\mathrm{the}\:\mathrm{stream}\:\mathrm{to}\:\mathrm{get}\:\mathrm{to}\:\mathrm{point}\:{B}.\:\mathrm{What} \\…

what-procedure-will-you-use-to-find-the-inverse-of-A-2-1-9-1-5-1-3-0-3-

Question Number 85131 by Rio Michael last updated on 19/Mar/20 $$\mathrm{what}\:\mathrm{procedure}\:\mathrm{will}\:\mathrm{you}\:\mathrm{use}\:\mathrm{to}\: \\ $$$$\mathrm{find}\:\mathrm{the}\:\mathrm{inverse}\:\mathrm{of} \\ $$$$\:\mathrm{A}\:=\:\begin{pmatrix}{\mathrm{2}}&{\mathrm{1}}&{\mathrm{9}}\\{\mathrm{1}}&{\mathrm{5}}&{\mathrm{1}}\\{\mathrm{3}}&{\mathrm{0}}&{\mathrm{3}}\end{pmatrix} \\ $$ Commented by jagoll last updated on 19/Mar/20 $$\left(\mathrm{1}\right)\:\mathrm{find}\:\mid\mathrm{A}\mid\:…

Blocks-P-and-R-starts-from-rest-and-moves-to-the-right-with-acceleration-a-P-12t-m-s-2-and-a-R-3-m-s-2-Here-t-is-in-seconds-The-time-when-block-Q-again-comes-to-rest-is-

Question Number 19509 by Tinkutara last updated on 12/Aug/17 $$\mathrm{Blocks}\:{P}\:\mathrm{and}\:{R}\:\mathrm{starts}\:\mathrm{from}\:\mathrm{rest}\:\mathrm{and} \\ $$$$\mathrm{moves}\:\mathrm{to}\:\mathrm{the}\:\mathrm{right}\:\mathrm{with}\:\mathrm{acceleration} \\ $$$${a}_{{P}} \:=\:\mathrm{12}{t}\:\mathrm{m}/\mathrm{s}^{\mathrm{2}} \:\mathrm{and}\:{a}_{{R}} \:=\:\mathrm{3}\:\mathrm{m}/\mathrm{s}^{\mathrm{2}} .\:\mathrm{Here}\:{t} \\ $$$$\mathrm{is}\:\mathrm{in}\:\mathrm{seconds}.\:\mathrm{The}\:\mathrm{time}\:\mathrm{when}\:\mathrm{block}\:{Q} \\ $$$$\mathrm{again}\:\mathrm{comes}\:\mathrm{to}\:\mathrm{rest}\:\mathrm{is} \\ $$ Commented…

In-the-arrangement-shown-the-wedge-is-smooth-and-has-a-mass-M-The-sphere-has-a-mass-m-The-system-is-released-from-rest-from-the-position-shown-There-is-no-friction-anywhere-Find-the-contact-force

Question Number 19511 by Tinkutara last updated on 12/Aug/17 $$\mathrm{In}\:\mathrm{the}\:\mathrm{arrangement}\:\mathrm{shown},\:\mathrm{the}\:\mathrm{wedge} \\ $$$$\mathrm{is}\:\mathrm{smooth}\:\mathrm{and}\:\mathrm{has}\:\mathrm{a}\:\mathrm{mass}\:{M}.\:\mathrm{The}\:\mathrm{sphere} \\ $$$$\mathrm{has}\:\mathrm{a}\:\mathrm{mass}\:{m}.\:\mathrm{The}\:\mathrm{system}\:\mathrm{is}\:\mathrm{released} \\ $$$$\mathrm{from}\:\mathrm{rest}\:\mathrm{from}\:\mathrm{the}\:\mathrm{position}\:\mathrm{shown}. \\ $$$$\mathrm{There}\:\mathrm{is}\:\mathrm{no}\:\mathrm{friction}\:\mathrm{anywhere}.\:\mathrm{Find}\:\mathrm{the} \\ $$$$\mathrm{contact}\:\mathrm{force}\:\mathrm{between}\:\mathrm{the}\:\mathrm{wall}\:\mathrm{and}\:\mathrm{the} \\ $$$$\mathrm{sphere}. \\ $$ Commented…