Choose your customized bathrobe for the ultimate spa experience

receptionistIf robots are going to work for us, they have to appear friendly and intelligent.
They have to be able to make decisions to be useful.

welcome
THE PROGRAM IS ON THE COMPSCI DRIVE IN BYOB EXAMPLES
Open it and save a copy to your drive.

At the spa, the first thing the receptionist does is welcome you.
Then you receive a customized bathrobe to wear for your visit.

  1. The receptionist will ask for your first name, middle name and last name
    (you will need to create variables to store these answers)
    (There is already one variable ready for you called initials)
    variables


  2. The bathrobe will be monogrammed with your initials, so the receptionist needs to join together the first letter from your first, middle and last names to put on the robe.
    first letter

  3. Then the receptionist asks what color robe you would like.
    The choices are red, brown, green or blue.
    When you give your answer, store in a new variable called COLOR
    Broadcast the signal for the color of your choice using if statements.
    broadcast color

  4. You can see that the bathrobe is already set up to respond to the color broadcast signals and change color.

bathrobecode