bernieJO.bas

010 REM This is Bernie.bas by Jesenya 
100 PRINT “You are Tom in Miller’s Crossing”
110 REM Place an intro below this so the player knows who Tom is and what his role is in this movie.
130 PRINT “Tom is a heartless character in the film Miller’s Crossing. He has a connection and plays”
140 PRINT “a role in every characters life. He makes smart and logical decisions that benefit him.”  
150 PRINT “The point of the game is to figure out Toms logic. You will be answering yes or no questions in this game. “
200 PRINT “Do you kill Bernie?”
210 INPUT kill$
300 PRINT “Can you outsmart Caspar?”
320 INPUT smart$
400 IF kill$ = “yes” OR kill$ = “Yes” AND smart$ = “yes” OR smart$ = “Yes” THEN GOTO 500
420 IF kill$ = “yes” OR kill$ = “Yes” AND smart$ = “no” OR smart$ = “No” THEN GOTO 600
440 IF kill$ = “no” OR kill$ = “No” AND smart$ = “yes” OR smart$ = “Yes” THEN GOTO 700
460 IF kill$ = “no” OR kill$ = “No” AND smart$ = “no” OR smart$ = “No” THEN GOTO 800
500 PRINT “If Tom kills Bernie and Tom can outsmart Caspar then, Caspar will end up working for Tom.” 
510 GOTO 900
600 PRINT “If Tom kills Bernie and Tom can’t outsmart Caspar then, Tom will end up working for Caspar.” 
610 GOTO 900
700 PRINT “If Tom spares Bernie and Tom can outsmart Caspar then, Caspar will get Verna.” 
710 GOTO 900
800 PRINT “If Tom spares Bernie and Tom can’t outsmart Caspar then, Tom will get killed.” 
810 GOTO 900
900 PRINT “You’re done now.”
1000 END
Advertisements

whoDatJO.bas

100 PRINT “Hey! What’s your name?”
200 INPUT name$

300 IF name$ = “Jesenya” OR name$ = “jesenya” THEN GOTO 450
330 IF name$ = “Lev” OR name$ = “lev” THEN GOTO 480

400 PRINT “You have a nice name but you aren’t who I am looking for.

450 PRINT “You have such a beautiful name.”
460 GOTO 500

480 PRINT “YOU HAVE SUCH A TERRIBLE NAME”

500 PRINT “You have reached the end of the program.”
510 END

The Lady or the Tiger?

The princess slightly points to the right and the prisoner looks up at her and realizes where she pointed to. Everyone else did not notice her because everyone had their eyes on the prisoner. 

The prisoner slowly walks over to the right door, following the princesses direction. He did not know whether or not she was telling the truth but he went along with it. 

After he hesitated to open the right door, he placed his hand on the door knob and twists it. 

The whole arena was silent. Everyone was anticipating this moment to come. The princess stood up straight and tall in her seat trying her best not to show any emotion upon the opening the door. 

Just before the door opened completely, the tiger comes out and devours the prisoner. 

It remained quiet in the arena with a few cheers and cries. 

The princess tried very hard to keep her cries in. She wanted the prisoner to live, after all she did love him. If it meant him being with another woman she was okay with it as long as he was alive. 

The tiger keeper lied to her. He lied because he wanted to keep her to himself. Even though he never told her about his love for her, he will now since the prisoner, her lover, is out of the picture. 

Syllogisms

Conditional 1: If you know how to draw, then you know how to paint.

Conditional 2: If you know how to paint then you are an artist.

A] Construct a correct syllogism from the 2 conditionals.

If those who know how to draw know how to paint and those who know how to paint are artists then those who know how to draw are artists.

B] Construct an incorrect statement from the 2 conditionals that kind of looks like a syllogism.

If those who know how to draw know how to paint and those who know how to paint know how to draw then those who are an artist know how to paint.

2) Create another pair of conditionals, but make at least one of them false in the real world.

Conditional 1: If you eats plants and vegetables, then you are a vegetarian.

Conditional 2: If you eat meat then you are a carnivore.

A] Construct a correct syllogism that is logically true but is NOT true in the real world.

If vegetarians eat plants and vegetables and carnivores eat meat, then all vegetarians eat meat.

procGameJO

// This Processing program creates a little animation machine
// with controls that you can customize.
// First, we need to “declare” a few variables of 3 different types.
int bDia, cDia, mvX, mvY;
float cX, cY, clickX, clickY;
color cCol;

// What do the variables mean? – There are more reminders next to
// the code in the next section named: THIS SETS UP THE GAME
// bDia is the button diameter
// cDia is the action circle diameter
// mvX is the direction on the x axis Horizontal
// mvY is the direction on the Y axis Vertical

//THIS SETS UP THE GAME
void setup() {
size(200, 400); // Create a program window 200 pixels wide and 400 pixels high.
stroke(0); // Set the color for the outlines of our shapes.
bDia = 30; // Set the diameter of our circular control buttons.
cDia = 30; // Set the diameter of the “action circle” we will control.
cX = 100; // Set the starting horizontal position of the action circle.
cY = 300; // Set the starting vertical position of the action circle.
cCol = color(255, 255, 255); // Set the starting color of the action circle.
mvX = 0; // Set the horizontal movement of the action circle.
mvY = 0; // Set the vertical movement of the action circle.
}

// Loop for the screen
void draw() {
// First 4 lines let you use math coordinates instead of computer coordinates.
// (0,0) is at the top left corner of the screen in computers.
scale(1, -1); // What does this mean?
translate(0, -height); // What does this mean?
clickX = mouseX; // What does this mean?
clickY = height – mouseY; // What does this mean?

fill(143, 141, 141); // This colors the action screen grey (RGB to change color)
rect(0, 200, 200, 200); // This draws the action screen

// FYI ellipse means circle
ellipse(100, 60, bDia, bDia); // Draw the top button.
ellipse(100, 100, bDia, bDia); // Draw the middle button.
ellipse(100, 140, bDia, bDia); // Draw the bottom button.
ellipse(60, 100, bDia, bDia); // Draw the left button.
ellipse(140, 100, bDia, bDia); // Draw the right button.

fill(cCol); // Set the color for the action circle.

if (cX + cDia/2 > 399){
cX = 199 – cDia/2;
mvX= -(mvX); //Makes the a.c. “bounce”
}

//If the action circle hits the bottom of the screen, it should bounce back down
else if (cX – cDia/2 < 201){
cX = 0 + cDia/2;
mvX= -(mvX); //Makes the a.c. “bounce”
}
cX = cX + mvX; // Set the horizontal position (x-axis) of the action circle.
// (cX) whatever it was last time + (mvX) movement vari

// THIS IS SO IT DOES NOT GET STUCK AT THE TOP OF THE SCREEN
// If the action circle hits the top of the screen, it should bounce back down.
if (cY + cDia/2 > 399){
cY = 399 – cDia/2;
mvY= -(mvY); //Makes the a.c. “bounce”
}

//If the action circle hits the bottom of the screen, it should bounce back down
else if (cY – cDia/2 < 201){
cY = 201 + cDia/2;
mvY= -(mvY); //Makes the a.c. “bounce”
}

cY = cY + mvY; // Set the vertical position of the action circle.
// The 2 “print lines” below will display at the bottom of this window.
// They will let us check the coordinates of the program window.
println(“X =”, clickX);
println(“Y =”, clickY);

ellipse(cX, cY, cDia, cDia); // Draw the action circle.
}

// IF THE MOUSE PRESSES ONE OF THE BUTTONS
void mousePressed() {
//Check if the user clicked the middle button.
if (dist(clickX, clickY, 100, 100) < bDia/2) {
cCol = color(123, 60, 46);
// If so, the a.c. should turn a color.
}

// When playing the game, you need to press the different buttons
// before it hits the edge of the screen

//Check if the user clicked the top button.
else if (dist(clickX, clickY, 100, 140) < bDia/2) {
mvY = 1;
mvX = 0;
//If so, make the action circle move upwards.
}

//Check if the user clicked the bottom button.
else if (dist(clickX, clickY, 100, 60) < bDia/2) {
mvY = -1;
mvX = 0;
//If so, make the action circle move downwards.
}

//Check if the user clicked the left button.
else if (dist(clickX, clickY, 60, 100) < bDia/2) {
mvX = -1;
mvY = 0;
//If so, make the action circle move left.
}

//Check if the user clicked the right button.
else if (dist(clickX, clickY, 140, 100) < bDia/2) {
mvX = 1;
mvY = 0;
//If so, make the action circle move right.
}

}