Welcome to my Web Portfolio Blog Page

In my blog you will find
my creative ideas, life experiences, articles, projects, coding, photos, videos, links
and much more.

(click here to return to www.rachelwalker.net)
Showing posts with label Pseudocode. Show all posts
Showing posts with label Pseudocode. Show all posts

Monday, March 10, 2008

My Pseudocode

Pseudo Code


Procedure:Feeding_Rat


Start

Go to bedroom
Go to rat cage
Sit in front of rat cage
Unlock rat cage

Insert hand into rat cage
Pet rat

Continue petting of rat for 2 minutes
Remove hand from rat cage

If food bowl is empty
Then feed rat

Open rat food bag
Insert 10 pellets into food bowl
Close rat cage
Close rat food bag

Unhook water dispenser attached to rat cage
Stand up
Go to Kitchen
Unscrew water dispenser nozzle
Remove old water
Refill with fresh water
Screw on water dispenser nozzle

Go to bedroom
Go to rat cage
Sit in front of rat cage
Attach water dispenser to rat cage

Stand up
Exit bedroom


End

Tuesday, March 4, 2008

Pseudocode

http://en.wikipedia.org/wiki/Pseudocode

Pseudocode is writing code in English so you can understand it. Then it makes writing it in code easier later.


EX:
if credit card number is valid
execute transaction based on number and order
else
show a generic failure message
end if



Assignment
1. Create pseudocode for an everyday action. Write on paper and hand in on PAPER.
-Break down a task ( anything you want)
-Make it half a page or more, single spaced
-Write it down on a piece of paper and turn it in.

-Think of something you do in your everyday life
(wash your face, brush teeth, take 15 steps to the bathroom,
bend down and pick up towel from floor, etc...)
-Do  by yourself!
2. Create and DOCUMENT an event-score (you may work with a partner) which elevates the mundane. Concentrate on simplicity over complexity.
Next:  Create an event score
http://transition.turbulence.org//uapd/?p=26

-Elevation of the mundane
Ex: Select a subject and then write 5 million pages about it


-you can make an event score and make someone else do it
-think of something wacky!!
-think positively
-don't' hurt yourself or others

-You can have a partner
-You must document it somehow ---videotape?

--the 2 projects do not have to relate to one another.

--------------------

-Fluxus
http://en.wikipedia.org/wiki/Fluxus
http://fluxus.org/

-Fluxus is a name taken from a Latin word meaning "to flow"—is an international network
of artists,composers and designers noted for blending different artistic media and
disciplines in the 1960s. They have been active in visual art and music
as well as literature, urban planning, architecture, and design.
Fluxus is often described as intermedia, a term coined by Fluxus artist
Dick Higgins in a famous 1966 essay.

--Intermedia---fluxus---arts technology---


Important Fluxus artists:
-John Cage
-Nam June Paik
-Yoko Ono


"One line of a program doesn't do anything, but a full program can blow up a building."


------------------------

example code

-if/then

-do while
Do -scrub you body- while -the water is running-

-logical and
-logical or
-AND
-OR
-NOT
-FOR
-Loop

-Case  (case statement --situation)
Monday
Tuesday-388 course
Wednesday
Thursday-388 course
Friday

-Switch
-Select
-If
-Then
-Else

-------------------------

http://www.seattlecentral.edu/~ymoh/mic110vb/pseudocode.htm