Person {
string id = "john.doe@gmail.com";
string [] skills = {"",""}
}
Person [] applicants;
int bestApplicantScore = 0;
string bestApplicantId = "";
foreach ( applicant in applicants){
if (applicant.score() > bestApplicant){
this.applicant.id = bestApplicant
}
}
public int score(){
int totalScore;
foreach (skill in Person.skills){
if skill === "c#" += totalScore += 10;
if skill === "sql" += totalScore += 10;
}
}
2013-10-10 answer questions
function why(request){
var title = "web developer";
var skills = new Array('html','css','javascript','asp.net','sql');
var cover = "hello, i saw this [position] [advertised on your website] and so i thought i would throw my name into the hat. It really interests me [because] I also think i could be a great fit because[] Thanks ";
switch(request){
case "skills": return skills[0];break;
case "cover": return cover;break;
case "title": return title;break;
default: " sorry i dont understand your request";
}
}