Task is to take in about 12 variables, compare it against a database, and make a "best fit" recommendation.
First, see the attached HTM form. We have about 240 of these database, and a few more (like maybe 10) fields will get added as I refine this task prior to starting the task.
It contains a matrix of what type of home loans this lender will do.
Here's how a typical equation might be parsed out, with the essential variables named here:
Type = purchase (01)
LTV = .8 (80%)
CLTV = 1.0 (100%)
Amount = $400,000
State = CA
FICO = 644
Property = Tri-plex
Doctype = SIVA (e.g. fieldname 2002 = 02)
interest-only wage-earner = Yes (1)
The loan officer hits "Recommend Lenders" and the database compares this and finds all options and displays it for selection.
That's the basic part. There are a few "curveballs" to be added on to this:
1. There are a few custom rules that if met, cause various display messages. Here's an example that's real:
Type = rate-term (03)
LTV = .5 (50%)
CLTV = .7 (70%)
Amount = $300,000
State = FL
FICO = 612
Property = SFR (01)
Doctype = FullDoc (e.g. fieldname 2002 = 01)
property is rural over 10 acres = Yes (1)
Therefore, custom rule as follows applies:
If credit is 600 to 640 and doctype = 1 and LTV < 80.01%
If credit is 580 to 600 and doctype = 1 and LTV < 70.01%
then display message
"We recommend trying an LP Accept; you may be able to take this client conforming product"
..in addition to the usual matches. Curveball 2 is if there is no match, advise client "No Matches: Here are the closest 3 we found", always showing at least 3 options. Last, these need to be sort-able by "my favorites (most often used)" and by rating (common to everyone on 5 different criteria)(e.g. this lender is really fast, or this one allows funky wierd homes, etc.).
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
Last, next year we will be mining our own data for recommendations, in that we will look at who closed what deal on what terms to make a recommendation - this feature should be somewhat built in now and thoroughly commented even if not yet implemented. Also, please comment in to allow for "paid placement", e.g. if criteria is met, pop Lender X to the top of the list.
The UI experience is to hit the button for "Recommend Lender", then have the recommendations show up in the bottom right text-box, and upon selection, pass that data into the event log to be priced out.
Please ask any questions you have!
Php / Sql. MUST BE very thoroughly commented, clean, elegant class-A code suitable for work in a multi-coder environment. Apache / MySql / Linux. Assume up to 200 concurrent users.