Important: The deadline for this event has passed. You can find the solution here. |
In Simon Says “Multiply By 4” competitors must write a script that carries out a series of mathematical equations.
Note. The Sudden Death Challenge is a separate competition from the main Scripting Games and Scripting Games events; although anyone can enter the Sudden Death Challenge, it’s primarily designed for those people who manage to breeze through the main Scripting Games events in a day or two. To enter the main Scripting Games, click here. To enter Event 7 of the Sudden Death Challenge, well, keep reading.
| About This Sudden Death Challenge Event | |
| Sudden Death Challenge Event Scenario | |
| How to Enter This Sudden Death Challenge Event |
Deadline | Wednesday, February 27, 2008 3:00 PM PST |
Points Awarded | 1 point in the Sudden Death Challenge |
Everyone has been working very hard to finish off both the regular Scripting Games events and the events offered in the Sudden Death Challenge. Therefore, we decided to give you a truly easy task for Event 7 of the Sudden Death Challenge. For this event all you have to do is write a script (using VBScript, Windows PowerShell, or Perl) that carries out the following mathematical equations:
| • | Starts with 100. |
| • | Doubles that value. |
| • | Divides that value by 30. |
| • | Takes just the integer portion of the resulting number. |
| • | Takes that integer value to the 5th power. |
| • | Multiplies the result by 4. |
| • | Takes the square root of that number. |
| • | Divides that value by 45. |
| • | Reports the final result using just two decimal places (e.g., 42.15). |
And that’s it. Write that script, send it in, and you’re done with Event 7. Just that easy, just that quick.
Wait, you know what? You’re right: that is too easy, isn’t it? So tell you what: let’s kick this up a notch. Instead of echoing the final result back to the command window or via a message box, we want your script to tell us the final result; in some way, shape, or form your script must report the final result by “speaking” out loud. How is your script supposed to speak? Well, we can’t really tell you that. However, we can tell you this: there are several articles in the Script Center about teaching your scripts to talk. Track down one of those, and you’ll be home free.
After completing the script, click here to submit your entry. If the link doesn’t automatically open a pre-addressed message, send email to scripter@microsoft.com (in English, if possible) with the subject line Sudden Death Challenge: Event 7.
All you have to do is paste your solution into the body of the message and then send the mail. You may also include the following:
| • | A name or nickname we can use to identify you when posting Sudden Death Challenge points leaders. |
| • | The name of the country you would like to represent. This might be your country of birth or the country you currently live in, but it doesn’t have to be; you can represent any country you wish. |
Note that Sudden Death points/participation will not be included in either the User Group or International Challenges.
You can simply type these items in at the top of the email. In that case, your email might look something like this:
Ken Myer
USA
For i = 1 to 100
Wscript.Echo i
Next