?

Log in

No account? Create an account
 
 
20 February 2009 @ 05:53 pm
I love Psudeo Code  
This is meaningless, but I find pseudo code so much fun, especially when it's half notes and half fake fileMaker script syntax.
SECOND ATTEMPT


4/08~10/08
• Range is Greater than 4.
• Range = EndPeriod - StartPeriod + (12* (EndYear-StartYear)
* Range = 10 - 4 + (12*0) = 6
• What Quarter Markers does it contain? (P3 P6 P9 P12)
• $LeftExists = Mod(($RangeStart - 1);3))
* $left = mod((4-1);-3)) = 0
• $Left = abs(Mod($RangeStart;-3))
* $left = abs(mod(4;-3)) = 2

• $FirstQuarter = (($RangeStart+$left-1)/3) + 1
* $FirstQuarter = ((4 + 0 - 1)/3) + 1 = 2

• $Right = Mod($RangeEnd;3)
*$Right = mod(10;3) = 1
• $LastQuarter = ($Right-$RangeEnd)/3
*$LastQuarter = (1 - 10)/3 = 3
• Assign the NumericalQuarters
• Global_StartQuarter = $StartYear & $FirstQuarter
* Global_StartQuarter = 2008 & 2 = "20082"
• Global_EndQuarter = $EndYear & $LastQuarter
* Global_EndQuarter = 2008 & 3 = "20083"

• GLobal_Left_StartMonth = Case(
$LeftExists = 0;
"";
$StartYear & $StartMonth
)
* GLobal_Left_StartMonth = 2008 & 04 = 200804

• GLobal_Left_EndMonth = Case(
$LeftExists = 0;
"";
$StartYear & ($StartMonth + $left)
)
* Global_Left_EndMonth = 2008 & (4 + 2) = 200806

• GLobal_Right_StartMonth = $EndYear & ($EndMonth - $Right)
* GLobal_Right_StartMonth = 2008 & (10 - 1 ) = 200809
• GLobal_Left_EndMonth = $EndYear & $EndMonth
* Global_Left_EndMonth = 2008 & 10 = 200810


ALso I used the tt tag for this. I am totally like... 1994
 
 
Current Location: Cupertino
Current Mood: happyhappy
Current Music: Where Are You Now-Britney Spears-Oops!...I Did It Again
 
 
 
arkmay on February 21st, 2009 09:29 am (UTC)
the best pseudo code in the world = HyperTalk!