Question
(python, java, Go land, and C) ) In the space below, write an automated test, in your language of choice(python, java, Go land, and C)
(python, java, Go land, and C)
) In the space below, write an automated test, in your language of choice(python, java, Go land, and C) and using a standard test
framework for that language. The function (or method) to test is called calculate_with_interest. The
function/method takes three parameters, the first is the starting balance, the second is the interest rate,
the third is the number of years the interest is compounded. (assume the old-fashioned way of
calculating interest yearly). The return value for the method is/should be a float/double representing the
final balance after the interest has been compounded into the balance for the specified number of years.
You are only writing the tests, not the method itself.
Include 2 unique assert statements in your test.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started