You need to design and prototype a simple project (source code) which serves the process of a customer applying the credit.
- A customer comes to the decision engine in order to apply for the credit.
To apply for the credit the next information should be passed:
firstname
lastname
id number
amount applied
- Decision engine starts from the scoring process. Depending on the results it decides what type of a credit customer can receive.
- There are three possible outcomes for the scoring:
- long term credit
- short term credit
- rejection (meaning we don't want to give any type of the credit)
- In this prototype scoring defines the result randomly
- scoring returns the decision as
string
- There are three possible outcomes for the scoring:
- As the result of the application, decision engine should return one of the credits or
null
, in case the customer was rejected.
- There can be only one decision engine at any time in the company.
- Customer applies for the credit via the same interface each time, it doesn't depend from credit type which we receive as result.
- You can use any 3rd party javascript libraries
- Solution should be prototyped in the single
.js
file - In order to output the results the
console.log
should be used - Please, paste your solution to this sheet, after you think it is done. You are more then welcome to use it during the development.
- Customer
- Credit (two types - "Long term credit" and "Short term credit")
- Scoring, which identifies if the customer receives any credit
- Decision engine, in order to apply for the credit by the customer