SlideShare a Scribd company logo
private voidjBtnmostrarActionPerformed(java.awt.event.ActionEventevt) {
//TODO add yourhandlingcode here:
double b=0.0,in=0.0,s=0.0,t=0.0;
if(this.jRadioButton1.isSelected())
{
s=100;
}
if(this.jRadioButton2.isSelected())
{
s=150;
}
if(this.jRadioButton3.isSelected())
{
s=50;
}
if(this.jRadioButton4.isSelected())
{
t=30;
}
if(this.jRadioButton5.isSelected())
{
t=50;
}
if(this.jRadioButton6.isSelected())
{
t=80;
}
if(this.jCheckBox1.isSelected())
{
b=(s+t)*0.30;
}
else
{
b=0.0;
}
in=(s+t)-b;
this.jLblbono.setText(String.valueOf(b));
this.jLblservicio.setText(String.valueOf(s));
this.jLblturno.setText(String.valueOf(t));
this.jLbltotal.setText(String.valueOf(in));
}
private voidjBtnnuevoActionPerformed(java.awt.event.ActionEventevt) {
//TODO add yourhandlingcode here:
this.jTxtdni.setText("");
this.jTxtfecha.setText("");
this.jTxthora.setText("");
this.jTxtpaciente.setText("");
this.jRadioButton1.setSelected(false);
this.jRadioButton2.setSelected(false);
this.jRadioButton3.setSelected(false);
this.jRadioButton4.setSelected(false);
this.jRadioButton5.setSelected(false);
this.jRadioButton6.setSelected(false);
this.jCheckBox1.setSelected(false);
this.jLblbono.setText((""));
this.jLblservicio.setText((""));
this.jLbltotal.setText((""));
this.jLblturno.setText("");
this.jTxtpaciente.requestFocus();
}
private voidjBtnsalirActionPerformed(java.awt.event.ActionEventevt) {
//TODO add yourhandlingcode here:
System.exit(0);
}

More Related Content

What's hot

Verilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with ExamplesVerilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with Examples
E2MATRIX
 
Displacement addressing
Displacement addressingDisplacement addressing
Displacement addressing
Rajon
 
Embedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontrollerEmbedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontroller
Gaurav Verma
 
8051 programming skills using EMBEDDED C
8051 programming skills using EMBEDDED C8051 programming skills using EMBEDDED C
8051 programming skills using EMBEDDED C
Aman Sharma
 
verilog code for logic gates
verilog code for logic gatesverilog code for logic gates
verilog code for logic gates
Rakesh kumar jha
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
mahalakshmimalini
 
DESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMSDESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMS
Gayathri Gaayu
 
Programmable logic array
Programmable logic arrayProgrammable logic array
Programmable logic array
Huba Akhtar
 
Program for hamming code using c
Program for hamming code using cProgram for hamming code using c
Program for hamming code using c
snsanth
 
BeagleBone black
BeagleBone blackBeagleBone black
BeagleBone black
Raja Vedula
 
8 bit full adder
8 bit full adder8 bit full adder
8 bit full adder
COMSATS Abbottabad
 
Verilog VHDL code Decoder and Encoder
Verilog VHDL code Decoder and EncoderVerilog VHDL code Decoder and Encoder
Verilog VHDL code Decoder and Encoder
Bharti Airtel Ltd.
 
Network lab manual
Network lab manualNetwork lab manual
Network lab manual
Prabhu D
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
Dilum Bandara
 
4 bit uni shift reg
4 bit uni shift reg4 bit uni shift reg
4 bit uni shift reg
E ER Yash nagaria
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchart
Tanjarul Islam Mishu
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
Rai University
 
Time delay programs and assembler directives 8086
Time delay programs and assembler directives 8086Time delay programs and assembler directives 8086
Time delay programs and assembler directives 8086
Dheeraj Suri
 
Design and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogDesign and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilog
STEPHEN MOIRANGTHEM
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1
Motaz Saad
 

What's hot (20)

Verilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with ExamplesVerilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with Examples
 
Displacement addressing
Displacement addressingDisplacement addressing
Displacement addressing
 
Embedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontrollerEmbedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontroller
 
8051 programming skills using EMBEDDED C
8051 programming skills using EMBEDDED C8051 programming skills using EMBEDDED C
8051 programming skills using EMBEDDED C
 
verilog code for logic gates
verilog code for logic gatesverilog code for logic gates
verilog code for logic gates
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
DESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMSDESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMS
 
Programmable logic array
Programmable logic arrayProgrammable logic array
Programmable logic array
 
Program for hamming code using c
Program for hamming code using cProgram for hamming code using c
Program for hamming code using c
 
BeagleBone black
BeagleBone blackBeagleBone black
BeagleBone black
 
8 bit full adder
8 bit full adder8 bit full adder
8 bit full adder
 
Verilog VHDL code Decoder and Encoder
Verilog VHDL code Decoder and EncoderVerilog VHDL code Decoder and Encoder
Verilog VHDL code Decoder and Encoder
 
Network lab manual
Network lab manualNetwork lab manual
Network lab manual
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
4 bit uni shift reg
4 bit uni shift reg4 bit uni shift reg
4 bit uni shift reg
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchart
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
Time delay programs and assembler directives 8086
Time delay programs and assembler directives 8086Time delay programs and assembler directives 8086
Time delay programs and assembler directives 8086
 
Design and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogDesign and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilog
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1
 

Viewers also liked

Tune TVi
Tune TViTune TVi
Tune TVi
Osman Nasir
 
Igot.final
Igot.finalIgot.final
Igot.final
Mikee Igot
 
Reza fazeli portfolio
Reza fazeli portfolioReza fazeli portfolio
Reza fazeli portfolio
Mohammad Reza Fazeli
 
CI oraz CD w złożonym projekcie o małym budżecie
CI oraz CD w złożonym projekcie o małym budżecieCI oraz CD w złożonym projekcie o małym budżecie
CI oraz CD w złożonym projekcie o małym budżecie
Grzegorz Godlewski
 
LES ANNEES 1960 EN FRANCE ET EN ITALIE
LES ANNEES 1960 EN FRANCE ET EN ITALIELES ANNEES 1960 EN FRANCE ET EN ITALIE
LES ANNEES 1960 EN FRANCE ET EN ITALIE
IIS PAOLO FRISI MILANO MIM
 
Q1
Q1Q1
Q1
BBJN
 
Mah C V 2016
Mah C V 2016Mah C V 2016
Mah C V 2016
mohammed shalam
 
My Evaluation Q.2
My Evaluation Q.2My Evaluation Q.2
My Evaluation Q.2
kate england
 
Lawrence J Carder LinkedIn
Lawrence J Carder LinkedInLawrence J Carder LinkedIn
Lawrence J Carder LinkedIn
Larry Carder
 
Plan trabajo ctrl_interno_2012
Plan trabajo ctrl_interno_2012Plan trabajo ctrl_interno_2012
Plan trabajo ctrl_interno_2012
Yahir Florez
 
Albuhaisi, osama cipm-2016
Albuhaisi, osama   cipm-2016Albuhaisi, osama   cipm-2016
Albuhaisi, osama cipm-2016
Osama Al Buhaisi CIPM™
 
Momento inercia
Momento inerciaMomento inercia
Momento inercia
jesu buitra
 
xplace perakende teknolojileri
xplace perakende teknolojilerixplace perakende teknolojileri
xplace perakende teknolojileri
Aydin Ozyurt
 
ffrdc-primer-april-2015
ffrdc-primer-april-2015ffrdc-primer-april-2015
ffrdc-primer-april-2015
DeAnthony Heart
 
Correccion del examen
Correccion del examenCorreccion del examen
Correccion del examen
allentona
 
xplace perakende teknolojileri
xplace perakende teknolojilerixplace perakende teknolojileri
xplace perakende teknolojileri
Aydin Ozyurt
 
silla de trabajo desplazable para un estudiante con movilidad reducida
silla de trabajo desplazable para un estudiante con movilidad reducidasilla de trabajo desplazable para un estudiante con movilidad reducida
silla de trabajo desplazable para un estudiante con movilidad reducida
Wilmer Marcano
 
Social media @Billund Airport by Henrik Meisel - Community Manager Billund L...
Social media @Billund Airport by Henrik Meisel  - Community Manager Billund L...Social media @Billund Airport by Henrik Meisel  - Community Manager Billund L...
Social media @Billund Airport by Henrik Meisel - Community Manager Billund L...
Henrik Meisel
 
David Sykes resume 2016

David Sykes resume 2016
David Sykes resume 2016

David Sykes resume 2016

David Sykes
 

Viewers also liked (20)

Tune TVi
Tune TViTune TVi
Tune TVi
 
Igot.final
Igot.finalIgot.final
Igot.final
 
Reza fazeli portfolio
Reza fazeli portfolioReza fazeli portfolio
Reza fazeli portfolio
 
CI oraz CD w złożonym projekcie o małym budżecie
CI oraz CD w złożonym projekcie o małym budżecieCI oraz CD w złożonym projekcie o małym budżecie
CI oraz CD w złożonym projekcie o małym budżecie
 
LES ANNEES 1960 EN FRANCE ET EN ITALIE
LES ANNEES 1960 EN FRANCE ET EN ITALIELES ANNEES 1960 EN FRANCE ET EN ITALIE
LES ANNEES 1960 EN FRANCE ET EN ITALIE
 
Q1
Q1Q1
Q1
 
Mah C V 2016
Mah C V 2016Mah C V 2016
Mah C V 2016
 
My Evaluation Q.2
My Evaluation Q.2My Evaluation Q.2
My Evaluation Q.2
 
Lawrence J Carder LinkedIn
Lawrence J Carder LinkedInLawrence J Carder LinkedIn
Lawrence J Carder LinkedIn
 
Plan trabajo ctrl_interno_2012
Plan trabajo ctrl_interno_2012Plan trabajo ctrl_interno_2012
Plan trabajo ctrl_interno_2012
 
Albuhaisi, osama cipm-2016
Albuhaisi, osama   cipm-2016Albuhaisi, osama   cipm-2016
Albuhaisi, osama cipm-2016
 
Momento inercia
Momento inerciaMomento inercia
Momento inercia
 
xplace perakende teknolojileri
xplace perakende teknolojilerixplace perakende teknolojileri
xplace perakende teknolojileri
 
ffrdc-primer-april-2015
ffrdc-primer-april-2015ffrdc-primer-april-2015
ffrdc-primer-april-2015
 
Correccion del examen
Correccion del examenCorreccion del examen
Correccion del examen
 
xplace perakende teknolojileri
xplace perakende teknolojilerixplace perakende teknolojileri
xplace perakende teknolojileri
 
silla de trabajo desplazable para un estudiante con movilidad reducida
silla de trabajo desplazable para un estudiante con movilidad reducidasilla de trabajo desplazable para un estudiante con movilidad reducida
silla de trabajo desplazable para un estudiante con movilidad reducida
 
Social media @Billund Airport by Henrik Meisel - Community Manager Billund L...
Social media @Billund Airport by Henrik Meisel  - Community Manager Billund L...Social media @Billund Airport by Henrik Meisel  - Community Manager Billund L...
Social media @Billund Airport by Henrik Meisel - Community Manager Billund L...
 
Scan 1
Scan 1Scan 1
Scan 1
 
David Sykes resume 2016

David Sykes resume 2016
David Sykes resume 2016

David Sykes resume 2016

 

More from marianela0393

Ingeniería de software
Ingeniería de softwareIngeniería de software
Ingeniería de software
marianela0393
 
Calidad de software
Calidad de softwareCalidad de software
Calidad de software
marianela0393
 
CPM
CPMCPM
Cocomo ii
Cocomo iiCocomo ii
Cocomo ii
marianela0393
 
Cocomo
CocomoCocomo
Diagrama componentes
Diagrama componentesDiagrama componentes
Diagrama componentes
marianela0393
 
diagrama de depliegue
diagrama de deplieguediagrama de depliegue
diagrama de depliegue
marianela0393
 
Diagrama de estado
Diagrama de estadoDiagrama de estado
Diagrama de estado
marianela0393
 
Trabajo 10 da
Trabajo 10 daTrabajo 10 da
Trabajo 10 da
marianela0393
 
Diagrama de interaccion(secuencia y colaboracion)
Diagrama de interaccion(secuencia y colaboracion)Diagrama de interaccion(secuencia y colaboracion)
Diagrama de interaccion(secuencia y colaboracion)
marianela0393
 

More from marianela0393 (10)

Ingeniería de software
Ingeniería de softwareIngeniería de software
Ingeniería de software
 
Calidad de software
Calidad de softwareCalidad de software
Calidad de software
 
CPM
CPMCPM
CPM
 
Cocomo ii
Cocomo iiCocomo ii
Cocomo ii
 
Cocomo
CocomoCocomo
Cocomo
 
Diagrama componentes
Diagrama componentesDiagrama componentes
Diagrama componentes
 
diagrama de depliegue
diagrama de deplieguediagrama de depliegue
diagrama de depliegue
 
Diagrama de estado
Diagrama de estadoDiagrama de estado
Diagrama de estado
 
Trabajo 10 da
Trabajo 10 daTrabajo 10 da
Trabajo 10 da
 
Diagrama de interaccion(secuencia y colaboracion)
Diagrama de interaccion(secuencia y colaboracion)Diagrama de interaccion(secuencia y colaboracion)
Diagrama de interaccion(secuencia y colaboracion)