Robert Niggebrugge CofC CSCI 362 Fall 2020 Blog

HW14: Chapter 18

18.4) Define an interface specification for the Currency Converter and Check credit rating services shown in Figure 18.7.

Operation Input
Output Exception
makeConversion convIn
currency type
amount
convOut
amount of currency
in type inputted
convExcep
incorrect currency type
lookUp
lookIn
currency type
lookOut
currency info
lookExcep
currency not found
compare compIn
currency type
compOut
list of exchange rates
compExcep
currency not found

Operation Input
OutPut Exception
makeConversion convIn
currency type
amount
convOut
amount of currency
in type inputted
convExcep
incorrect currency type
lookUp
lookIn
currency type
lookOut
currency info
lookExcep
currency not found
compare compIn
currency type
compOut
list of exchange rates
compExcep
currency not found