Home / Expert Answers / Computer Science / namespace-last-first-business-this-static-class-contains-func-pa815

(Solved): Namespace: Last.First.Business This static class contains func ...



student submitted image, transcription available below

student submitted image, transcription available below
Namespace: Last.First.Business This static class contains functionality that includes financial functions. Create the Financial class in the library project. This class must be defined under the Last.First.Business namespace. Design Methods + GetPayment(decimal, int, decimal) : decimal - Returns the payment amount for an annuity based on periodic, fixed payments and a fixed interest rate. Parameters: - rate - the interest rate per period. For example, if the rate is an annual percentage rate (APR) of 10 percent and the customer makes monthly payments, the rate per period is , or 0.0083 . - numberOfPaymentPeriods - the total number of payment periods in the annuity. For example, if you make monthly payments on a four-year car loan, your loan has a total of (or 48 ) payment periods. For each method (unit) being tested, output the method signature. For each test, output the following: - Test number - Outcome description - Expected result - Actual result Leave one blank line between each test. Sample Output Format Testing method GetPayment(decimal, int, decimal) Test 1 Expected: The argument cannot be less than 0 . Parameter name: rate Actual: The argument cannot be less than 0 . Parameter name: rate Test 2 Expected: 526.23 Actual: 526.23 DO NOT use keyboard input. Hard code all test values. If a method has more than one outcome, you will require a test for each outcome. Ensure you indicate the test number for each test. Avoid creating additional methods to reduce repetition in your test application. It is expected that some lines of code will be duplicated.


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe