Documente Academic
Documente Profesional
Documente Cultură
void setup(){
size(500, 400);
void draw(){
background(0);
stroke(120);
strokeWeight(8);
fill(255,255,255);
//retangulo superior
rect(260,20, 60,40);
//retangulo inferior
rect(260,340, 60,40);
//circulo
stroke(0,255,0);
strokeWeight(4);
fill(0);
ellipse(340,200,200,200);
ellipse(180,200,200,200);
//triangulo
stroke(120);
strokeWeight(10);
fill(255,255,0);
triangle(120,80,340,200,120,320);
stroke(0,0,255);
strokeWeight(8);
line(340,200,420,200);
stroke(0);
strokeWeight(8);
line(200,180,200,220);
line(180,200,220,200);
//linea roja
stroke(255,0,0);
line(60,140,120,140);
//linea azul
stroke(0,0,255);
line(120,260,60,260);
2 CODIGOS DE PROCESSING
void setup(){
size(450, 270);
void draw(){
background(0,255,0);
//Figura 2
//circulo
stroke(125);
strokeWeight(4);
fill(255,255,0);
ellipse(90,180,120,120);
ellipse(360,180,120,120);
//tapecio
stroke(125);
strokeWeight(4);
fill(255,0,0);
quad(180,120,270,120,330,240,120,240);
//triangulo pequeo
stroke(0,0,255);
strokeWeight(3);
fill(0,0,255);
rect(60,60,30,30);
rect(120,60,30,30);
rect(180,60,30,30);
rect(240,60,30,30);
rect(300,60,30,30);
rect(360,60,30,30);
stroke(0,0,255);
strokeWeight(1);
//retangulo superior
fill(255,0,255);
rect(30,90,390,30);
//lineas
stroke(0);
line(240,90,210,120);
line(210,90,240,120);
3 CODIGOS DE PROCESSING
void setup(){
size(480, 480);
void draw(){
background(255,0,0);
//Figura 2
stroke(0);
strokeWeight(4);
fill(255,255,255);
//triangulo
stroke(0,0,255);
strokeWeight(2);
fill(0,0,255);
triangle(100,300,240,60,380,300);
//circulos pequeos
fill(0,255,0);
ellipse(200,240,40,40);
ellipse(280,240,40,40);
stroke(0);
fill(0);
ellipse(240,340, 40,40);
strokeWeight(8);
//linea izquierda
line(140,360,200,360);
line(140,320,200,320);
line(140,340,200,340);
//linea derecha
line(280,360,340,360);
line(280,320,340,320);
line(280,340,340,340);
//orejas
stroke(0);
strokeWeight(6);
fill(255,255,0);
rect(120,120,40,60);
rect(320,120,40,60);
1CODIGO DE PSEING
Proceso segunda_del_taller
leer dinero
leer dia
Si dia>=1 Entonces
ahorro=dinero*dia
Fin Si
Si ahorro>=30000 Entonces
cambio=ahorro-30000
Sino
Si ahorro>=60000 Entonces
cambio=ahorro-60000
Sino
Si ahorro>=120000 Entonces
Fin Si
Fin Si
Fin Si
FinProceso
2CODIGO DE PSEING
Proceso COMPRA_DE_COMPONENTES
leer precio
leer cantidad_art
total<-precio*cantidad_art
descuento<-0
FinSi
descuento<- (total*10)/100
descuento<- (total*20)/100
finsi
FinSi
Si cantidad==20 Entonces
descuento<- (total*40)/100
Fin Si
total<-total-descuento
descuento2=total-descuento
FinProceso
3CODIGO DE PSEING
Algoritmo circuitos_1
Leer op
Segun op Hacer
1:
leer i
leer r
v <- i * r
2:
leer v
leer i
r <- v / i
3:
leer v
leer r
i <- v / r
4:
leer v
leer i
p <- v*i
De Otro Modo:
FinAlgoritmo
4CODIGO DE PSEING
Algoritmo Circuito_DC
Leer OP
Leer R1
Leer R2
Leer R3
Segun OP Hacer
1:
REQ=R1+R2+R3
2:
REQ=1/((1/R1)+(1/R2)+(1/R3))
De Otro Modo:
Fin Segun
FinAlgoritmo
5CODIGO DE PSEING
Proceso NOTAS_ESTUDIANTE
leer nombre
mensaje2="CURSO"
escribir "nota1"
leer n1
escribir "nota2"
leer n2
escribir "nota3"
leer n3
p1<- n1*35/100
p2<- n2*25/100
p3<- n3*40/100
definitiva=p1+p2+p3
Si definitiva<3 Entonces
Sino
Fin Si
Escribir mensaje,definitiva
FinProceso