FileName(Life-code): open;
activateCommand(Conception);
activateCommand(Growth);
activateCommand(Mother-endorphin-generation)
#89 years later
FileName(Death-code): open;
activateCommand(Last-words);
activateCommand(peacefulDeath);
FileName(Death-code): close;
FileName(Life-code): close;
The code that starts life, and the code that ends it(As can be seen, it is within the original file, as based on the code's structure, which matters far too much).
#code
#life
#death
Note Me Out
I am a choice element with no selection
and this input is unexpected
I am a subject statement in sequence
evaluated in an object oriented language
Babe, I am a Null Pointer
We can push it tonight
Just not tomorrow
if not this then the other
or if this exists then join another
else commit
else
Babe, I am a Null Pointer
We can ignore it tonight
Just not tomorrow
endif
endif
Fie on Goodness
CMD
C:
cd C:\you
dir C:\you\today\*.*
cd C:\longtermmemory
md C:\longtermmemory\today
cd C:\longtermmemory/today
md do’s
md don’ts
cd C:\shorttermmemory\today
copy C:\shorttermmemory\today/do’s C:\longtermmemory\today\do’s
copy C:\shorttermmemory\today/don’ts C:\longermmemory\today\don’ts
del C:\shorttermmemory\today\do’s\*.*
del C:\shorttermmemory\today\don’ts\*.*
;copy C:\longtermmemory\*.* C:\CONSCIENCE\*.* /v /e /s
format CONSCIENCE
Y
rd C:\CONCSCIENCE\*.*
Life In Code
While (alive = “TRUE”)
{
If age < 18
home = mommas_house
status = oblivious
else if 18 <= age <= 22
home = university
status = stressed
else if age > 22
home = what_you_can_afford
status = confronting_the_absurd
Check_If_Alive (home, status) //calling function to check if you're alive still
}
alive = "FALSE"
home = six_feet_under
status = dead
Calculating School Test Score Statistics (School Computer Code)
/**************************************************
*File Name: FloatStats
*Purpose: Calculate a series of statistics using user defined float values
*Programmer: Kevin Yang
*Last Updated Date: 11/07/19
*************************************************/
import javax.swing.JOptionPane;
public class FloatStats {
public static void main(String[] args) {
JOptionPane.showMessageDialog(null, “After you enter all your test grades, enter ‘a.’”);
String userNum = JOptionPane.showInputDialog(“Enter your test grade.”);
int counter = 0;
float sum = 0;
float average = 0;
float biggestNum = 0;
float smallestNum = 0;
float num = 0;
if (!(userNum.equals(“a”))) {
num = Float.parseFloat(userNum);
biggestNum = num;
smallestNum = num;
}
while (!(userNum.equals(“a”))) {
sum = sum + num;
userNum = JOptionPane.showInputDialog(“Enter another test grade.”);
counter += 1;
average = sum / counter;
if (!(userNum.equals(“a”))) {
num = Float.parseFloat(userNum);
if (num >= biggestNum)
biggestNum = num;
if (num <= smallestNum)
smallestNum = num;
}
}
JOptionPane.showMessageDialog(null, “Your average test score is ” + average);
JOptionPane.showMessageDialog(null, “Your highest test score is ” + biggestNum);
JOptionPane.showMessageDialog(null, “Your lowest test score is ” + smallestNum);
JOptionPane.showMessageDialog(null, “The range between your highest and lowest test score is ” + (biggestNum - smallestNum));
}
}