[plt-scheme] Need help in converting simple code into Scheme.
hi all,
I have a program written in fully C#.
I need to rewrite parts of my functions into Scheme.
Can someone please help me convert the little bit of code below into Scheme
so that i can try referencing in my project?
Please help me get started. Thanks!
// start of Easy Sample C# code
//================================================================
using System;
using System.Collections.Generic;
using System.Text;
namespace NTU.TutoringSystem.Components
{
public class SkillModel
{
private int SkillLevel;
public int Execute(int score)
{
// answer 1 easy question correctly to proceed to skill level2
if(score < 1)
{
SkillLevel = 1;
return SkillLevel;
}
// answer 2 medium question correctly to proceed to skill level3
else if( (score >= 1) && (score < 3))
{
SkillLevel = 2;
return SkillLevel;
}
else
{
SkillLevel = 3;
return SkillLevel;
}
}
}
}
//================================================================
// end of Easy Sample C# code
--
Regards,
waihung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20061001/f01f0de0/attachment.html>