Electrical Safety

Humans( Conductor)

https://www.stevespanglerscience.com/lab/experiments/human-circuit/

  • Don’t touch electrical circuits with your fingers.
  • Should someone come into contact with electricity, don’t touch them; shut down the main power.
  • Never touch anyone’s electrical circuits unless invited to do so.

Water( Conductor)

https://www.quora.com/What-should-I-do-if-water-gets-into-an-electrical-outlet

  • If there is a spill, shut off the main power before doing anything else.
  • Never work with electrical circuits with wet hands or on a wet floor.

Metal (Conductor)

https://www.metalsupermarkets.com/which-metals-conduct-electricity/

  • Don’t wear metal jewelry or watchbands when working on electrical circuits.
  • Disconnect the power source before working on electrical circuits and devices.
  • Use tools with non-conducting handles.

myGameIS.pde

20170425_123743 (1)-/0/This Program was created by Ismael

int base=5;
int x,y,gameScore=0;
int changeX=-10;
int changeY=-10;
int gameOver=0;
void setup()
{
size(450, 550);
x=(int)random(width);
y=height-base;
}
void draw()
{
if(gameOver==0)
{
background(0);
text(“SCORE:”+gameScore+”00”,width/2,height/2);
rect(mouseX,height-base,200,base);
ellipse(x,y,10,10);
x=x+changeX;
y=y+changeY;
if(x<0 | x>width)
{
changeX=-changeX;
}
if(y<0)
{
changeY=-changeY;
}
if(y>height-base)
{
//check whether it is falling inside the rectangle or not
if(x>mouseX && x<mouseX+200)
{
changeY=-changeY; //bounce back
gameScore++;
}
else
{
gameOverSplash();
}
}
}
else
{
background(255,0,0);
text(“Game Over!”,width/2,height/2);
text(“CLICK TO RESTART”,width/2,height/2+20);
}
}
void gameOverSplash()
{
gameOver=1;
}
void mouseClicked()
{
changeY=-changeY;
gameScore=0;
gameOver=0;
}

bounceIS.pde

// bounce.pde edited by Ismael Sanogo
// 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, dia;
color cCol;

void setup() {
size(201, 400); // Create a program window 201 pixels wide and 201 pixels high.
stroke(127); // Set the color for the outlines of our shapes.
bDia = 20; // Set the diameter of our circular control buttons.
cDia = 20; // 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.
dia = 20; // Diameter of the bounce
}

void draw() {
// These first 4 lines let you use math coordinates instead of computer coordinates.
scale(1, -1);
translate(0, -height);
clickX = mouseX;
clickY = height – mouseY;

fill(255); // Color the screen white.
rect(0, 200, 300, 300); // Draw the square “action screen”.

ellipse(100, 60, bDia, bDia); // Draw the bottom button.
ellipse(100, 100, bDia, bDia); // Draw the middle button.
ellipse(100, 140, bDia, bDia); // Draw the top 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.
cX = cX + mvX; // Set the horizontal position of the action circle.
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 (cX <= dia/1 || cX >= 201-dia) {
cCol = color (209,54, 23);
mvX *= -1;
}
if (cY <= dia/1 || cY >= 400-dia) {
cCol = color (232, 122, 4 );
mvY *= -1;
}
}

void mousePressed () {
//Check if the user clicked the middle button.
if (dist(clickX, clickY, 100, 100) < bDia/2) {
cCol = color(0,0,300);
mvY = 0;
mvX = 0;
// If so, turn the action circle blue.
}

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

 

 

Control.pde

// 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;

void setup() {
size(201, 400); // Create a program window 201 pixels wide and 400 pixels high.
stroke(127); // Set the color for the outlines of our shapes.
bDia = 20; // Set the diameter of our circular control buttons.
cDia = 20; // 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.
}

void draw() {
// These first 4 lines let you use math coordinates instead of computer coordinates.
scale(1, -1);
translate(0, -height);
clickX = mouseX;
clickY = height – mouseY;

fill(255); // Color the screen white.
rect(0, 200, 200, 200); // Draw the square “action screen”.

ellipse(100, 60, bDia, bDia); // Draw the bottom button.
ellipse(100, 100, bDia, bDia); // Draw the middle button.
ellipse(100, 140, bDia, bDia); // Draw the top 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.
cX = cX + mvX; // Set the horizontal position of the action circle.
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.
}

void mousePressed() {
//Check if the user clicked the middle button.
if (dist(clickX, clickY, 100, 100) < bDia/2) {
cCol = color(255, 0, 0);
// If so, turn the action circle red.
}

//Check if the user clicked the top button.
else if (dist(clickX, clickY, 100, 140) < bDia/2) {
mvY = 1;
//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;
// If so make the action circle move downards.
}
// Check if the user clicked the left button
else if (dist(clickX, clickY, 140, 100 ) < bDia/2) {
mvX = 1;
// If so make the action circle move left.
}

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

Syllogisms

Conditional 1-If you are Ismael Sanogo, then you are athletic.

Conditional 2-If you are athletic. then you play a sport.

True Syllogisms-  If you are Ismael Sanogo,  you are athletic.And, if you are athletic than you play a sport. So if you are Ismael Sanogo, that must mean you play a sport.

Conditional 1-If a game is old, then it has been out for a long time

Conditional 2-If a game has been out for a long time, then it is not the latest

False syllogism- If a games is old, then the game is outdated, So if the game is outdated it is definitely bad

Conditional 1- If you are a human, then you breathe oxygen

Conditional 2-If you breathe oxygen, you are alive

Void- If you are a human, then you breathe oxygen. And if you breathe oxygen, you are alive, So only humans breathe oxygen to stay alive.

Conditionals and Converses

If your on the wrestling team you play a sport. Conditional.

If you play a sport, your on the wrestling team. Converse.

Converse is false because there are way more sports than just wrestling.

 

 

 

 

If you slap a child, they will feel pain. Conditional

If a child is in pain, it was slapped. Converse.

Converse is falls because getting slapped isn’t the only source/ reason for pain.

 

 

 

 

If your phone is on the battery is depleting.Conditional

If your phone battery is depleting, your phone is on. Converse

In this case, both makes sense. Since your using your phone and the phones power source is the battery, you are draining said phone of power.