Documentos de Académico
Documentos de Profesional
Documentos de Cultura
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <iomanip>
#include <ctime>
#include <conio.h>
#include <windows.h>
class Aeropuerto{
private:
double folio;
public:
Aeropuerto(){}
int MenuPrincipal();
void Comprar();
void TipoVuelo();
void TipoClase();
void DestinoNacional();
void DestinoInternacional();
void Boletos();
void PesoExtra();
void Confirmar();
float Tabla();
};
return op_MenuP;
void Aeropuerto::TipoClase(){
AB: system("cls");
cout << "\n\t\t" << setw(9) << "CLASE" << setw(16) << "TARIFA" << endl;
cout << "\n\t\t(1) Clase Ejecutiva" << setw(8) << "$ 1950";
cout << "\n\t\t(2) Clase Turista" << setw(8) << "$ 1250";
switch(op_Tclase){
void Aeropuerto::DestinoNacional(){
AC: system("cls");
cout<<"\n\t--------------------------------------------------------------------------------";
cout<<"\n\t--------------------------------------------------------------------------------\n";
switch(op_destino){
void Aeropuerto::DestinoInternacional(){
AE: system("cls");
cout<<"\n\t--------------------------------------------------------------------------------------------------------
----";
cout<<"\n\t--------------------------------------------------------------------------------------------------------
----\n";
cout<<"\n\t\t(4) EUA $ 1350 VUELO DIRECTO: CDMX a Las Vegas Salida: 13:00
Legada 15:55";
cout<<"\n\t\t(5) Francia $ 1680 VUELO ESCALA: CDMX a Paris Salida: 07:45
Legada 11:30";
switch(op_destino){
void Aeropuerto::Boletos(){
cout << "\n\t Numero total de boletos a comprar: "; cin >> boletos;
void Aeropuerto::PesoExtra(){
AD: system("cls");
switch(op_pesoExtra){
case 1:
break;
switch(op_pesoExtra){
case 1:
break;
void Aeropuerto::Comprar(){
A: system("cls");
cout << "\n\t\t==========================";
AA: TipoVuelo();
switch(op_Tvuelo){
case 1:
strcpy(vuelo, "NACIONAL");
TipoClase();
DestinoNacional();
Boletos();
PesoExtra();
break;
case 2:
strcpy(vuelo, "INTERNAC");
TipoClase();
DestinoInternacional();
Boletos();
PesoExtra();
break;
Confirmar();
if(op_confirmar == 1){ cout << endl << setw(40) <<"PROCESANDO COMPRA..." << endl <<
setw(41) << "TRANSFERENCIA DE DATOS";}
cout << "\n\t\tVuelo: " << vuelo << "\n\t\tClase: " << clase;
cout << "\n\t\tDestino: " << destino << "\n\t\tBoletos: " << boletos;
cout << "\n\t\tPeso Extra: " << pesoExtra << " Kg";
float Aeropuerto::Tabla(){
static int y = 7;
gotoxy(6,y); cout << nombre; gotoxy(17,y); cout << vuelo; gotoxy(28,y); cout << clase;
gotoxy(41,y); cout << destino; gotoxy(58,y); cout << boletos; gotoxy(67,y); cout <<
pesoExtra << " Kg";
gotoxy(79,y); cout << "$ " << tarifa_pesoExtra; gotoxy(93,y); cout << "AL-" << folio ;
gotoxy(105,y); cout << "$ " << costoTotal << endl; Sleep(500);
y++;
return costoTotal;
}
void Descripcion();
void Corte(int);
float GanTot = 0;
int main(){
int n, op;
system("Esime");
Descripcion();
Sleep(400);
cout << endl << setw(70) << "D\241gite el n\243mero de clientes: ";
do{
B: op = Usuario[0].MenuPrincipal();
switch(op){
case 2: Corte(1);
Corte(2);
break;
}while(op!=3);
delete [] Usuario;
getch();
return 0;
HANDLE hcon;
hcon = GetStdHandle(STD_OUTPUT_HANDLE);
COORD dwPos;
dwPos.X = x;
dwPos.Y = y;
SetConsoleCursorPosition(hcon,dwPos);
void Descripcion(){
cout << endl << setw(89) << " \tREGISTRO DE VUELOS Y COSTOS DIARIOS DE AEROLINEA
LISSET AIR";
for(int i=0; i<10; i++){ Sleep(300); cout << " " << mensaje[i]; }
cout << "\n\n" << setw(90) << "----------------------------------------------------------";
cout << endl << setw(65) << "Presione enter para continuar... "; getch();
Sleep(300);
cout << setw(72) << " = GENERANDO CORTE =" << endl;
cout << endl << setw(12) << "NOMBRE" << setw(11) << "VUELO" << setw(12) <<
"CLASE"
<< setw(13) << "DESTINO" << setw(14) << "BOLETOS" << setw(13) <<
"PESO EXTRA"
<< setw(13) << "TARIFA P.E." << setw(11) << "FOLIO" << setw(12) <<
"COSTO" << endl;
Sleep(300);
Sleep(300);
Sleep(500);
cout << setw(111) << "Total = $ " << GanTot << endl;
cout << endl << setw(29) << "DIVISAS" << endl; Sleep(500);
cout << endl << setw(28) << "Total = $ " << CAD << " CAD"; Sleep(500);
cout << endl << setw(28) << "Total = $ " << USD << " USD"; Sleep(500);
cout << endl << setw(28) << "Total = E " << EUR << " EUR"; Sleep(500);
cout << endl << setw(28) << "Total = \234 " << GBP << " GBP"; Sleep(500);
cout << endl << " Presione cualquier tecla para salir... ";
getch(); exit(0);