Advertisement
Automake

CalculadoraDeDecimoTerceiroSalario

Sep 4th, 2019
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.96 KB | None | 0 0
  1.     package calculadoradecimo;
  2.  
  3.  
  4.             import javax.swing.JOptionPane;  
  5.              
  6.             public class CalculadoraDeDecimoTerceiro {  
  7.                  
  8.                public static void main (String args[]){  
  9.                    
  10.                   String Salario,MesesDeTrabalho;  
  11.              
  12.                    
  13.                  Salario=JOptionPane.showInputDialog("Digite o seu Salário:");  
  14.                  MesesDeTrabalho=JOptionPane.showInputDialog("Digite a quantidade de Meses que Trabalhou:");  
  15.                
  16.                  String MostreResultado = String.valueOf(Float.parseFloat(Salario) / 12 * Float.parseFloat(MesesDeTrabalho));    
  17.                  
  18.                  String msg="Seu Decimo Terceiro é:" + MostreResultado;  
  19.                    
  20.                  JOptionPane.showMessageDialog(null,msg);  
  21.              
  22.                  System.exit(0);  
  23.                    
  24.               }  
  25.            }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement