Ejercicio 10

163 vues

Publié le

0 commentaire
0 j’aime
Statistiques
Remarques
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Aucun téléchargement
Vues
Nombre de vues
163
Sur SlideShare
0
Issues des intégrations
0
Intégrations
3
Actions
Partages
0
Téléchargements
2
Commentaires
0
J’aime
0
Intégrations 0
Aucune incorporation

Aucune remarque pour cette diapositive

Ejercicio 10

  1. 1. #include <iostream.h>#include <conio.h>#include <stdio.h>#include <windows>/*Ismael junior botho zonguacarrera; Mecatronicaejercicio 10 circuitos integrados*/int re;void main(){cout<<"COMPUESTAS LOGICAS"<<endl;cout<<"MENU DE COMPUERTAS LOGICAS"<<endl;cout<<"1.- NOT n";cout<<"2.- AND n";cout<<"3.- NAND n";cout<<"4.- OR n";cout<<"5.- NOR n";cout<<"6.- OR-EXCLUSIVA n!";cout<<"7.- SALIR n";cin>>re;{cout<<"COMPURTA NOT"<<endl;cout<<" ______________________________"<<endl;cout<<" | ooo || [] sssss |"<<endl;cout<<" | o o|| [] s |"<<endl;cout<<" | o o|| [] sssss |"<<endl;cout<<" | o o|| [] s |"<<endl;cout<<" | ooo || [] sssss |"<<endl;cout<<" |____________________________|"<<endl;cout<<" | ooo [] ll |"<<endl;cout<<" | o o [] ll |"<<endl;cout<<" | o o [] ll |"<<endl;cout<<" | o o [] ll |"<<endl;cout<<" | ooo [] llllll |"<<endl;cout<<" | [] |"<<endl;cout<<" | [] |"<<endl;cout<<" | 11 [] ooo |"<<endl;cout<<" | 11 [] o o |"<<endl;cout<<" | 11 [] o o |"<<endl;cout<<" | 11 [] o o |"<<endl;cout<<" | 111111 [] ooo |"<<endl;cout<<" _ _ _ _ _ _ _ "<<endl;cout<<" | | | | | | | | | | | | | | "<<endl;cout<<" | | | | | | | | | | | | | | "<<endl;cout<<" ----------------------------------------- "<<endl;cout<<" |VCC | | | | | | | "<<endl;cout<<" | |-->.-| |-->.-| |-->.-| | "<<endl;cout<<" |> | "<<endl;cout<<" | > 77777 44 00 44 | "<<endl;cout<<" | > 7 4 4 0 0 4 4 | "<<endl;cout<<" | > 7 44444 0 0 44444 | "<<endl;
  2. 2. cout<<" | > 7 4 00 4 | "<<endl;cout<<" |> | "<<endl;cout<<" ||-->.-| |-->.-| |-->.-| | "<<endl;cout<<" || | | | | | | "<<endl;cout<<" || | | | | | MASA | "<<endl;cout<<" ----------------------------------------- "<<endl;cout<<" 1| | | | | | | | | | | | | | "<<endl;cout<<" |_| |_| |_| |_| |_| |_| |_| "<<endl;cout<<" "<<endl;cout<<" COMPUERTA AND"<<endl;cout<<" _______________________________"<<endl;cout<<" | | ____ |"<<endl;cout<<" | aa | b | |___ |"<<endl;cout<<" | a a| bbb | ____| |"<<endl;cout<<" | aa | bbb | |"<<endl;cout<<" |-----------------------------|"<<endl;cout<<" | 00 00 | 00 |"<<endl;cout<<" | 0 0 0 0 | 0 0 |"<<endl;cout<<" | 00 00 | 00 |"<<endl;cout<<" | | |"<<endl;cout<<" | 00 1 | 00 |"<<endl;cout<<" | 0 0 1 | 0 0 |"<<endl;cout<<" | 00 111 | 00 |"<<endl;cout<<" | | |"<<endl;cout<<" | 1 00 | 00 |"<<endl;cout<<" | 1 0 0 | 0 0 |"<<endl;cout<<" | 111 00 | 00 |"<<endl;cout<<" | | |"<<endl;cout<<" | 1 1 | 1 |"<<endl;cout<<" | 1 1 | 1 |"<<endl;cout<<" | 111 111 | 111 |"<<endl;cout<<" |_________________|___________|"<<endl;cout<<" __ __ __ __ __ __ __"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" |------------------------------------------------|"<<endl;cout<<" | VCC | | | | | | |"<<endl;cout<<" | | |---|)) | | |---|)) | |"<<endl;cout<<" | | | )-| | | )-| |"<<endl;cout<<" |> |-----------|)) |---------|)) |"<<endl;cout<<" | > |"<<endl;cout<<" | > 77777 44 00 00 |"<<endl;cout<<" | > 7 4 4 0 0 0__0 |"<<endl;cout<<" | > 7 44444 0 0 0 0 |"<<endl;cout<<" |> 7 4 00 00 |"<<endl;cout<<" | |"<<endl;cout<<" | _________|)) |--------|)) |"<<endl;cout<<" | | __| )-| | | )---| |"<<endl;cout<<" | | | |)) | | |-|)) | |"<<endl;cout<<" | | | | | | | MASA|"<<endl;cout<<" |------------------------------------------------|"<<endl;cout<<" 1| | | | | | | | | | | | | | "<<endl;cout<<" |__| |__| |__| |__| |__| |__| |__|"<<endl;cout<<"COMPUERTA NAND"<<endl;
  3. 3. cout<<"__________________________________"<<endl;cout<<"| | |"<<endl;cout<<"| aa | b | ____ |"<<endl;cout<<"| a a| bbb | |___ |"<<endl;cout<<"| aa | bbb | ____| |"<<endl;cout<<"|------------------|----------- |"<<endl;cout<<"| 00 00 | 1 |"<<endl;cout<<"| 0 0 0 0 | 1 |"<<endl;cout<<"| 00 00 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 00 1 | 1 |"<<endl;cout<<"| 0 0 1 | 1 |"<<endl;cout<<"| 00 111 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 00 | 1 |"<<endl;cout<<"| 1 0 0 | 1 |"<<endl;cout<<"| 111 00 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 1 | 00 |"<<endl;cout<<"| 1 1 | 0 0 |"<<endl;cout<<"| 111 111 | 00 |"<<endl;cout<<"|__________________|_____________|"<<endl;cout<<" __ __ __ __ __ __ __ "<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" |--------------------------------------------------|"<<endl;cout<<" | VCC | | | | | | |"<<endl;cout<<" | | |---|)) | | |---|)) | |"<<endl;cout<<" | | | ).-| | | ).-| |"<<endl;cout<<" |> |-----------|)) |---------|)) |"<<endl;cout<<" | > |"<<endl;cout<<" | > 77777 44 00 00 |"<<endl;cout<<" | > 7 4 4 0 0 0 0 |"<<endl;cout<<" | > 7 44444 0 0 0 0 |"<<endl;cout<<" |> 7 4 00 00 |"<<endl;cout<<" | |"<<endl;cout<<" | |---------|)) |--------|)) |"<<endl;cout<<" | | ).-| | | ).-| |"<<endl;cout<<" | | |--|)) | | |-|)) | |"<<endl;cout<<" | | | | | | | MASA |"<<endl;cout<<" |--------------------------------------------------|"<<endl;cout<<" 1| | | | | | | | | | | | | | "<<endl;cout<<" |__| |__| |__| |__| |__| |__| |__|"<<endl;cout<<" COMPURTA OR"<<endl;cout<<"___________________________________"<<endl;cout<<"| | _____ |"<<endl;cout<<"| aa | b | |____ |"<<endl;cout<<"| a a| bbb | _____| |"<<endl;cout<<"| aa | bbb | |"<<endl;cout<<"|-------------------|-------------|"<<endl;cout<<"| 00 00 | 00 |"<<endl;cout<<"| 0 0 0 0 | 0 0 |"<<endl;cout<<"| 00 00 | 00 |"<<endl;cout<<"| | |"<<endl;cout<<"| 00 1 | 1 |"<<endl;cout<<"| 0 0 1 | 1 |"<<endl;
  4. 4. cout<<"| 00 111 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 00 | 1 |"<<endl;cout<<"| 1 0 0 | 1 |"<<endl;cout<<"| 111 00 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 1 | 1 |"<<endl;cout<<"| 1 1 | 1 |"<<endl;cout<<"| 111 111 | 111 |"<<endl;cout<<"|-------------------|-------------|"<<endl;cout<<" __ __ __ __ __ __ __ "<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" |--------------------------------------------------|"<<endl;cout<<" | VCC | | | | | | |"<<endl;cout<<" | | |---))) | | |---))) | |"<<endl;cout<<" | |----------- ) )--| | ) )--| |"<<endl;cout<<" |> ))) |-------- ))) |"<<endl;cout<<" | > |"<<endl;cout<<" | > 77777 44 333 22222 |"<<endl;cout<<" | > 7 4 4 __3 2 |"<<endl;cout<<" | > 7 44444 3 2 |"<<endl;cout<<" |> 7 4 333 22222 |"<<endl;cout<<" | |"<<endl;cout<<" | |---------))) |--------))) |"<<endl;cout<<" | | ) )--| | _ ) )--| |"<<endl;cout<<" | | |--))) | | | ))) | |"<<endl;cout<<" | | | | | | | MASA |"<<endl;cout<<" |--------------------------------------------------|"<<endl;cout<<" 1| | | | | | | | | | | | | | "<<endl;cout<<" |__| |__| |__| |__| |__| |__| |__|"<<endl;cout<<" COMPUERTA NOR"<<endl;cout<<"________________________________________"<<endl;cout<<"| aa | b | ____ |"<<endl;cout<<"| a a| bbb | |____ |"<<endl;cout<<"| aa | bbb | _____| |"<<endl;cout<<"|-----------------------|---------------|"<<endl;cout<<"| | |"<<endl;cout<<"| 00 00 | 1 |"<<endl;cout<<"| 0 0 0 0 | 1 |"<<endl;cout<<"| 00 00 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 00 1 | 00 |"<<endl;cout<<"| 0 0 1 | 0 0 |"<<endl;cout<<"| 00 111 | 00 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 00 | 00 |"<<endl;cout<<"| 1 0 0 | 0 0 |"<<endl;cout<<"| 111 00 | 00 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 1 | 00 |"<<endl;cout<<"| 1 1 | 0 0 |"<<endl;cout<<"| 111 111 | 00 |"<<endl;cout<<"|-----------------------|---------------|"<<endl;
  5. 5. cout<<" __ __ __ __ __ __ __ "<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" |--------------------------------------------------|"<<endl;cout<<" | VCC | | | | | | |"<<endl;cout<<" | | (((_| | | (((--| | |"<<endl;cout<<" | |--.( ( _______| |-.( ( | |"<<endl;cout<<" |> ((( (((--------| |"<<endl;cout<<" | > |"<<endl;cout<<" | > 77777 44 000 22222 |"<<endl;cout<<" | > 7 4 4 0 0 2 |"<<endl;cout<<" | > 7 44444 0 0 22 |"<<endl;cout<<" |> 7 4 000 22222 |"<<endl;cout<<" | |"<<endl;cout<<" | (((-------| (((-------| |"<<endl;cout<<" | --.( ( | --.( ( | |"<<endl;cout<<" | | (((-| | | (((--| | |"<<endl;cout<<" | | | | | | | MASA |"<<endl;cout<<" |--------------------------------------------------|"<<endl;cout<<" 1| | | | | | | | | | | | | | "<<endl;cout<<" |__| |__| |__| |__| |__| |__| |__|"<<endl;cout<<"COMPUERTA OR-EXCLUSIVA"<<endl;cout<<"_______________________________________"<<endl;cout<<"| aa | b | _____ |"<<endl;cout<<"| a a| bbb | |____ |"<<endl;cout<<"| aa | bbb | _____| |"<<endl;cout<<"|-----------------------|-------------|"<<endl;cout<<"| | |"<<endl;cout<<"| 00 00 | 00 |"<<endl;cout<<"| 0 0 0 0 | 0 0 |"<<endl;cout<<"| 00 00 | 00 |"<<endl;cout<<"| | |"<<endl;cout<<"| 00 1 | 1 |"<<endl;cout<<"| 0 0 1 | 1 |"<<endl;cout<<"| 00 111 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 00 | 1 |"<<endl;cout<<"| 1 0 0 | 1 |"<<endl;cout<<"| 111 00 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 00 | 00 |"<<endl;cout<<"| 1 0 0 | 0 0 |"<<endl;cout<<"| 111 00 | 00 |"<<endl;cout<<"|-----------------------|-------------|"<<endl;cout<<" __ __ __ __ __ __ __"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" |------------------------------------------------|"<<endl;cout<<" | VCC | | | | | | |"<<endl;cout<<" | | |___))) | | (((---| | |"<<endl;cout<<" | |___________ ))-| |-(( | |"<<endl;
  6. 6. cout<<" |> ))) (((-------| |"<<endl;cout<<" | > |"<<endl;cout<<" | > 77777 44 00 6666 |"<<endl;cout<<" | > 7 4 4 0__0 6__ |"<<endl;cout<<" | > 7 4444 0 0 6 6 |"<<endl;cout<<" | > 7 4 00 6666 |"<<endl;cout<<" |> |"<<endl;cout<<" | |"<<endl;cout<<" | |---------))) (((------| |"<<endl;cout<<" | | ))-| |--(( | |"<<endl;cout<<" | | |--))) | | (((--| | |"<<endl;cout<<" | | | | | | | MASA|"<<endl;cout<<" |------------------------------------------------|"<<endl;cout<<" 1| | | | | | | | | | | | | | "<<endl;cout<<" |__| |__| |__| |__| |__| |__| |__|"<<endl;cout<<"COMPUERTA NOR-EXCLUSUVA"<<endl;cout<<"_______________________________________"<<endl;cout<<"| | _____ |"<<endl;cout<<"| aa | b | |____ |"<<endl;cout<<"| a a| bbb | _____| |"<<endl;cout<<"| aa | bbb | |"<<endl;cout<<"|---------------------|---------------|"<<endl;cout<<"| 00 00 | 1 |"<<endl;cout<<"| 0 0 0 0 | 1 |"<<endl;cout<<"| 00 00 | 111 |"<<endl;cout<<"| | |"<<endl;cout<<"| 00 1 | 00 |"<<endl;cout<<"| 0 0 1 | 0 0 |"<<endl;cout<<"| 00 111 | 00 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 00 | 00 |"<<endl;cout<<"| 1 0 0 | 0 0 |"<<endl;cout<<"| 111 00 | 00 |"<<endl;cout<<"| | |"<<endl;cout<<"| 1 1 | 1 |"<<endl;cout<<"| 1 1 | 1 |"<<endl;cout<<"| 111 111 | 111 |"<<endl;cout<<"|---------------------|---------------|"<<endl;cout<<" __ __ __ __ __ __ __"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" | | | | | | | | | | | | | |"<<endl;cout<<" |--------------------------------------------------|"<<endl;cout<<" | VCC | | | | | | |"<<endl;cout<<" | | |-))) | | (((--| | |"<<endl;cout<<" | | )).--| |-.(( | |"<<endl;cout<<" |> |---------))) (((------| |"<<endl;cout<<" | > |"<<endl;cout<<" | > 77777 44 22222 6666 6666 |"<<endl;cout<<" | > 7 4 4 2 6__ 6__ |"<<endl;cout<<" | > 7 44444 22 6 6 6 6 |"<<endl;cout<<" | > 7 4 22222 6666 6666 |"<<endl;cout<<" |> |"<<endl;cout<<" | |"<<endl;cout<<" | |---------))) (((------| |"<<endl;cout<<" | | ))-.| |-.(( | |"<<endl;
  7. 7. cout<<" | | |--))) | | (((--| | |"<<endl;cout<<" | | | | | | | MASA |"<<endl;cout<<" |--------------------------------------------------|"<<endl;cout<<" 1| | | | | | | | | | | | | | "<<endl;cout<<" |__| |__| |__| |__| |__| |__| |__|"<<endl;system("pause");getche();}}

×