Currency Converter
ConvertFrom(type), ConvertTo(type)Both will accept currency type in form of string and define a mathematical formula which will then be called by:
ConvertCurrency(amount)
Which will accept an int amount and convert it to the appropriate value.
Credit Rating
Don't know much about credit rating, assuming this is similar to credit score and going off of this wikipedia article, I'll construct the following interface.PaymentHistory(array)
Accept an array of items containing any (or no) derogatory information such as bankruptcy or late payments. Contributes 35% towards total.
DebtBurden(array)
Accepts an array of debt specific measurements such as debt to limit ratio, number of accounts with balances, amount owed on different types of accounts, etc. Contributes 30% towards total.
TimeInFile(age1,age2)
Accepts two ints, average age of accounts in the report and the age of the oldest account. Contributes 15% towards total.
TypesOfCredit(array)
Accepts an array containing the types of credit used by the customer. A variety leads to a higher score. Contributes 10% towards total.
CreditInquireies(numSearches)
Accepts a number which represents the number of hard credit inquiries (these occur when the consumer applies for a credit card or loan). Contributes 10% towards total.
CalculateScore()
Accepts each method's contribution and calculates final score based on their contribution percentages.



0 comments:
Post a Comment