Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 196421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:45:57+00:00 2026-05-11T16:45:57+00:00

I’m looking for the coolest thing you can do in a few lines of

  • 0

I’m looking for the coolest thing you can do in a few lines of simple code. I’m sure you can write a Mandelbrot set in Haskell in 15 lines but it’s difficult to follow.

My goal is to inspire students that programming is cool.

We know that programming is cool because you can create anything you imagine – it’s the ultimate creative outlet. I want to inspire these beginners and get them over as many early-learning humps as I can.

Now, my reasons are selfish. I’m teaching an Intro to Computing course to a group of 60 half-engineering, half business majors; all freshmen. They are the students who came from underprivileged High schools. From my past experience, the group is generally split as follows: a few rock-stars, some who try very hard and kind of get it, the few who try very hard and barely get it, and the few who don’t care. I want to reach as many of these groups as effectively as I can. Here’s an example of how I’d use a computer program to teach:

Here’s an example of what I’m looking
for: a 1-line VBS script to get your
computer to talk to you:

CreateObject("sapi.spvoice").Speak InputBox("Enter your text","Talk it")

I could use this to demonstrate order
of operations. I’d show the code, let
them play with it, then explain that
There’s a lot going on in that line,
but the computer can make sense of it,
because it knows the rules. Then I’d
show them something like this:

4(5*5) / 10 + 9(.25 + .75)

And you can see that first I need to
do is (5*5). Then I can multiply for
4. And now I’ve created the Object. Dividing by 10 is the same as calling
Speak – I can’t Speak before I have an
object, and I can’t divide before I
have 100. Then on the other side I
first create an InputBox with some
instructions for how to display it.
When I hit enter on the input box it
evaluates or “returns” whatever I
entered. (Hint: ‘oooooo’ makes a
funny sound) So when I say Speak, the
right side is what to Speak. And I
get that from the InputBox.

So when you do several things on a
line, like:

x = 14 + y;

You need to be aware of the order of
things. First we add 14 and y. Then
we put the result (what it evaluates
to, or returns) into x.

That’s my goal, to have a bunch of these cool examples to demonstrate and teach the class while they have fun. I tried this example on my roommate and while I may not use this as the first lesson, she liked it and learned something.

Some cool mathematica programs that make beautiful graphs or shapes that are easy to understand would be good ideas and I’m going to look into those. Here are some complicated actionscript examples but that’s a bit too advanced and I can’t teach flash. What other ideas do you have?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:45:57+00:00Added an answer on May 11, 2026 at 4:45 pm

    I got a great response from my kids with a quick VB script to manipulate a Microsoft Agent character. For those that aren’t familiar with MS Agent, it’s a series of animated onscreen characters that can be manipulated via a COM interface. You can download the code and characters at the Microsoft Agent download page.

    The folllowing few lines will make the Merlin character appear on screen, fly around, knock on the screen to get your attention, and say hello.

    agentName = "Merlin"
    agentPath = "c:\windows\msagent\chars\" & agentName & ".acs"
    Set agent = CreateObject("Agent.Control.2")
    
    agent.Connected = TRUE
    agent.Characters.Load agentName, agentPath
    Set character = agent.Characters.Character(agentName)
    
    character.Show
    
    character.MoveTo 500, 400
    character.Play "GetAttention"
    character.Speak "Hello, how are you?"
    Wscript.Sleep 15000
    character.Stop
    character.Play "Hide"
    

    There are a great many other commands you can use. Check http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx for more information.

    EDIT 2011-09-02
    I recently discovered that Microsoft Agent is not natively installed on Windows 7. However it is offered as a separate download here. I have not tested this so cannot verify whether it operates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
Seemingly simple, but I cannot find anything relevant on the web. What is the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.