Sunday, October 30, 2011

Lesson Three: Television Schedules

Is there a new episode of The Office on tonight?
I couldn't find an address for that.

Siri, this might be a lot to ask, but this is a yes or no question that would require you to query a television schedule database. If you are ever going to make as a television interface operator when you grow up, I need you to figure out how to answer this question.

Thanks,
User

Lesson Two: Random Number [Update: Lesson Learned]

Give me a random integer from one to three.
Call Random Products on 10221 Sweet Valley in Cleveland?

No, Siri, I want you to return either 1, 2, or 3 based on a random number algorithm. You can ask your friend Alpha with the query "random integer from 1 to 3" or "RandomInteger[{1,3}]". You already know how to ask Alpha to flip a coin, which is quite wonderful. But if I have three children and I have only one piece of cake, I could really use some help quickly deciding which one to give it to.

Thanks,
User

Update:
Wolfram random integer between 0 and 3.
2


Wow, Siri, you pick things up pretty quickly.

Thanks, 
User

Lesson One: Sunglasses

Will I need sunglasses today?
I found 12 optometrists, 8 nearby

Siri, instead of providing assistance as if I said "I need glasses" you should instead answer the question like "Will I need an umbrella today?" by checking whether or not it will be rainy. You already know how to answer the question "Will it be sunny today."

Let us recap:
Rainy ----> Umbrella
as
Sunny ---->Sunglasses


Thanks,
User