miércoles, 15 de octubre de 2014

Creación De Procesos FORK

ALGORITMO PANADERIA LAMPORT

Aprendiendo UML en 24 horas

miércoles, 6 de agosto de 2014

Este es el proteus junto con el microcode ahi lo dejo para que sea útil

Es el codigo VrmlPad con las figuras geométricas

#VRML V2.0 utf8
Collision {
collide FALSE
children [
Transform {
translation -3 0 0
children [
Shape {
geometry Box {
size 2 2 2
}
appearance Appearance {
material Material {
diffuseColor 1 0 0
}
}
}
]
}
]
}
Collision {
collide TRUE
children [
Shape {
geometry Sphere {
radius 1
}
appearance Appearance {
material Material {
diffuseColor 0 1 0
}
}
}
Transform {
translation 5 0 0
children [
Shape {
appearance Appearance {
material Material{
diffuseColor .576 .8 .306
specularColor .235 .576 .863
emissiveColor .424 .702 .22
}
}
geometry Cone { height 3.0
           bottomRadius 0.75}

}
]
}
Transform {
translation 3 0 0
children [
Shape {
geometry Cylinder {height 1
}
appearance Appearance {
material Material {
diffuseColor 0 0.5 1
}
}
}
]
}
]
}

Este es el codigo VrmlPad: es un cuarto ahí les dejo para que lo miren

#VRML V2.0 utf8

Group {
children [
#PISO
Transform {translation 0.0 -0.1 2.0 children [
Shape {appearance Appearance {material Material {diffuseColor 2 0 2}}
geometry Box { size 4 0.1 4}}]}
#PARED DERECHA
Transform {translation 2 0.9 2.0 children [
Shape {appearance Appearance {material Material {diffuseColor 2 0 2}}
geometry Box { size 0.1 2 4}}]},
#PARED IZQUIERDA
Transform {translation -2 0.9 2.0 children [
Shape {appearance Appearance {material Material {diffuseColor 2 0 2}}
geometry Box { size 0.1 2 4}}]},
#PARED FONDO
Transform {translation 0.0 1.1 0.0 children [
Shape {appearance Appearance {material Material {diffuseColor 2 0 2}}
geometry Box {size 4 2.5 0.1}},]},
#CAMA
Transform {translation 0.0 0.11 2.0 children [
Shape {appearance Appearance {material Material {diffuseColor 3 0.1 0.2}}
geometry Box { size 1.5 0.5 2}}]},
#SABANA
Transform {translation 0.0 0.4 2.0 children [
Shape {appearance Appearance {material Material {diffuseColor 0.8 0.8 0.8}}
geometry Box { size 1.3 0.1 1.85}}]},
#ALMUADAS DERECHA
Transform {translation 0.3 0.5 1.3 children [
Shape {appearance Appearance {material Material {diffuseColor 0.2 0.9 0.1}}
geometry Box { size 0.3 0.1 0.2}}]},
#ALMUADAS IZQUIERDA
Transform {translation -0.3 0.5 1.3 children [
Shape {appearance Appearance {material Material {diffuseColor 0.2 0.9 0.1}}
geometry Box { size 0.3 0.1 0.2}}]},
#ARMARIO
Transform {translation 1.76 0.55 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor 4 0.1 0.2}}
geometry Box { size 0.55 1.3 1.3}}]},
#ARMARIO PUERTA DERECHA
Transform {translation 1.5 0.53 0.9 children [
Shape {appearance Appearance {material Material {diffuseColor 1 0.85 0}}
geometry Box { size 0.1 1.3 0.6}}]},
#ARMARIO PUERTA IZQUIERDA
Transform {translation 1.24 0.55 1.82 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Box {size 0.5 1.3 0.06}},]},
#COMODA 1
Transform {translation 1.76 0.3 3 children [
Shape {appearance Appearance {material Material {diffuseColor 4 0.1 0.2}}
geometry Box { size 0.5 0.8 1}}]},
#CAJONE SUPERIOR
Transform {translation 1.5 0.55 3 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Box { size .05 0.2 .9}}]},
#CAJONE CENTRAL
Transform {translation 1.5 0.3 3 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Box { size .05 0.2 .9}}]},
#CAJONE INFERIOR
Transform {translation 1.5 0.065 3 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Box { size .05 0.2 .9}}]},
#PERILLA SUPERIOR
Transform {translation 1.43 0.55 3 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Sphere { radius 0.05 }}]},
#PERILLA CENTRAL
Transform {translation 1.43 0.3 3 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Sphere { radius 0.05 }}]},
#PERILLA INFERIOR
Transform {translation 1.43 0.065 3 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Sphere { radius 0.05 }}]},
#COMODA 2
Transform {translation -1.76 0.3 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor 4 0.1 0.2}}
geometry Box { size 0.5 0.8 1}}]},
#CAJONE SUPERIOR2
Transform {translation -1.5 0.55 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Box { size .05 0.2 .9}}]},
#CAJONE CENTRAL2
Transform {translation -1.5 0.3 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Box { size .05 0.2 .9}}]},
#CAJONE INFERIOR2
Transform {translation -1.5 0.065 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Box { size .05 0.2 .9}}]},
#PERILLA SUPERIOR2
Transform {translation -1.43 0.55 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Sphere { radius 0.05 }}]},
#PERILLA CENTRAL2
Transform {translation -1.43 0.3 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Sphere { radius 0.05 }}]},
#PERILLA INFERIOR2
Transform {translation -1.43 0.065 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Sphere { radius 0.05 }}]},
#LAMPARA ESFERA
Transform {translation -1.65 0.95 1.6 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Sphere { radius 0.1 }}]},
#LAMPARA CILINDRO
Transform {translation -1.65 0.87 1.6 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Cylinder { height 0.05 radius 0.12}}]},
#LAMPARA CILINDRO
Transform {translation -1.65 0.87 1.6 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Cylinder { height 0.05 radius 0.12}}]},
#LAMPARA CILINDRO2
Transform {translation -1.65 0.8 1.6 children [
Shape {appearance Appearance {material Material {diffuseColor 1 .85 0}}
geometry Cylinder { height 0.2 radius 0.05}}]},
#CUADRO
Transform {translation -1.65 0.8 1.2 children [
Shape {appearance Appearance {material Material {diffuseColor .88 .32 .2
specularColor .82 .28 .28
ambientIntensity .113
shininess .8}}
geometry Box { size .07 .2 .3}}]},  
]}

domingo, 11 de mayo de 2014

Sacar Cantidad en c++

#include<iostream.h>
#include<conio.h>
void main()
{
int CANT, B20, B10, B5, B1;
clrscr();
cout<<"Ingrese cantidad: ";cin>>CANT;
B20 = CANT/20;
CANT = CANT%20;
B10 = CANT/10;
CANT = CANT%10;
B5 = CANT/5;
B1 = CANT%5;
cout<<"Billetes de 20: "<<B20;
cout<<"Billetes de 10: "<<B10;
cout<<"Billetes de 5: "<<B5;
cout<<"Billetes de 1: "<<B1;
getch();
}