hi all,<br>
<br>I have a program written in fully C#.<br>
I need to rewrite parts of my functions into Scheme.<br>
Can someone please help me convert the little bit of code below into Scheme so that i can try referencing in my project?<br>
Please help me get started. Thanks!<br>
<br>
<br>
// start of Easy Sample C# code<br>
//================================================================<br>using System;<br>using System.Collections.Generic;<br>using System.Text;<br><br>namespace NTU.TutoringSystem.Components<br>{<br> public class SkillModel
<br> {<br> private int SkillLevel;<br><br> public int Execute(int score)<br> {<br> //
answer 1 easy question correctly to proceed to skill level2<br> if(score
< 1) <br> {<br> SkillLevel = 1;<br> return SkillLevel;<br> }<br> //
answer 2 medium question correctly to proceed to skill level3<br> else if( (score >= 1) && (score < 3))<br> {<br> SkillLevel = 2;<br> return SkillLevel;<br>
}<br> else <br> {<br> SkillLevel = 3;<br> return SkillLevel;<br> }<br> }<br> }<br>}<br>//================================================================
<br>// end of Easy Sample C# code<br>-- <br>Regards,<br>waihung<br>