Ex 18.4
Q: Define an interface specification for the Currency Converter and Check credit rating services shown in figure 18.7
A:
Currency Converter:
convertCurrency
Input: amount (double), givenCurrency (string), wantedCurrency (string)
Output: converted (double)
Exceptions: Invalid Currency
exchangeRate
Input: givenCurrency (string), wantedCurrency (string)
Output: exchange(double)
Exceptions: Invalid Currency
Credit Rating Service:
creditRating
Input: idNumber (int), emailToSendResult (string)
Output: score(int),
Exceptions: Invalid idNumber
Collaborated with Meagan Gould
Comments