top of page
Search

HW18: Chapter 18

Updated: Oct 17, 2019

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

0 views0 comments

Recent Posts

See All

HW23: Chapter 22

Ex 22.6 Q: Fixed-price contracts, where the contractor bids a fixed price to complete system development, may be used to move project risk from client to contractor. If anything goes wrong, the contra

HW27: Chapter 25

Ex 25.10 Q: Describe 5 factors that engineers should take into account doing the process of building a release of a large software system. A: When thinking about this answer I used the release of a ph

bottom of page