C is the most powerful computer language today. It is used on every computer platform and operating system. Most of the web pages
you visit on the Internet and every page at RoboCatz have some form of C embedded within. Have you ever conducted a search at Google.com and noticed how the search engine seemed to be watching every key you pressed and offered suggestions based on the keys you were pressing? That is accomplished using a derivative of the C language called JavaScript.
When you visit our website, did you notice the RoboCatz logo at the top has a set of dots orbiting the logo? Did you notice that the dots get lighter when they go behind the Logo? How do you think the dots know where to go and what shade to become? It is all controlled through JavaScript (a form of the C language for web browsers)
Remember the scoreboard we had in the Fall season? That was built using Javascript. Here's the main section of the Scoreboard (shown below). I certainly wouldn't expect you to understand the code shown below. However, you should begin the process of learning RobotC. Start now and may be a few years from now you'll be designing your own web based tools.
Please note that there are businesses, companies, and corporations built entirely around programs written in languages derived from C. Learning RobotC is your start to an endless world of unlimited possibilities.
function SBItem(s) { s=s+''; retVal=''; if(s.length==0) return '<img src=./images/LetterBlank.png width=15>'; for(i=0;i<s.length;i++) { c=s.substr(i,1).toUpperCase(); retVal+='<img src=./images/Letter'+((c.indexOf(' ')==0)?'Blank':c)+'.png width=15>'; } return retVal; } var oldSquad='z'; var oldSubTeam='z'; for(tm in Scores) { myScores=Scores[tm]; myTotal=0; myID=myScores.ID; mySquad=myScores.squad; mySubTeam=myScores.subteam; if(mySquad.indexOf(oldSquad)<0) { oldSquad=mySquad; dw('<tr><td CLASS=ScoreboardHeader colspan=12 align=center>Squad: '+mySquad+'</td></tr>'); } if(mySubTeam.indexOf(oldSubTeam)<0) { oldSubTeam=mySubTeam; if(mySubTeam.indexOf('2')==0) { dw('<tr><td CLASS=ScoreboardHeader colspan=12 align=center height=1>'); dw('<img src=./images/spacer.gif height=1 border=0 width=10></td></tr>'); } } dw('<tr>'); dw('<td CLASS=ScoreboardHeader>'+SBItem(myID)+'</td>'); dw('<td align=center>'+(("pollution" in myScores)? SBItem(myScores.pollution): SBItem(''))+'</td>'); myTotal+=(("pollution" in myScores)?myScores.pollution:0); dw('<td align=center>'+(("fish" in myScores)? SBItem(myScores.fish ): SBItem(''))+'</td>'); myTotal+=(("fish" in myScores)?myScores.fish:0); dw('<td align=center>'+(("harvester" in myScores)? SBItem(myScores.harvester): SBItem(''))+'</td>'); myTotal+=(("harvester" in myScores)?myScores.harvester:0); dw('<td align=center>'+(("truck" in myScores)? SBItem(myScores.truck ): SBItem(''))+'</td>'); myTotal+=(("truck" in myScores)?myScores.truck:0); dw('<td align=center>'+(("hoops" in myScores)? SBItem(myScores.hoops ): SBItem(' '))+'</td>'); myTotal+=(("hoops" in myScores)?myScores.hoops:0); dw('<td align=center>'+(("bacteria" in myScores)? SBItem(myScores.bacteria ): SBItem(' '))+'</td>'); myTotal+=(("bacteria" in myScores)?myScores.bacteria:0); dw('<td align=center>'+(("trailer" in myScores)? SBItem(myScores.trailer ): SBItem(' '))+'</td>'); myTotal+=(("trailer" in myScores)?myScores.trailer:0); dw('<td align=center>'+(("rats" in myScores)? SBItem(myScores.rats ): SBItem(' '))+'</td>'); myTotal+=(("rats" in myScores)?myScores.rats:0); dw('<td align=center CLASS=ScoreboardHeader>'); dw(SBItem(((myTotal<10)?' ':((myTotal<99)?' ':''))+myTotal)+'</td>'); dw('</tr>'); }