← Namespaces

Two applyRate Functions

medium

Define physics::applyRate alongside the already-complete finance::applyRate – same name, same parameter types, same formula, living in a different namespace. Without namespaces, this would be a flat redefinition error, identical to Module 3’s is_even exercise; with them, both coexist and main calls each one unambiguously by its qualified name.

Your solution

"Run" uses the sample stdin ("10 2"). "Submit" checks your code against all 3 test cases.

Test results

Submit your solution to run it against all test cases.

Hints

    Reference solution