top of page
Search
Writer's pictureShefali Emmanuel

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...

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...

Comments


bottom of page