[/b] :)[color=black][/color][b]import javax.swing.JOptionPane;
public class primeiro {
public static Double n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,Total,Media,Imposto;
public static void main(String[] args) {
n1=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Janeiro"));
n2=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Fevereiro"));
n3=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Março"));
n4=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Abril"));
n5=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Maio"));
n6=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Junho"));
n7=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Julho"));
n8=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Agosto"));
n9=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Setembro"));
n10=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Outubro"));
n11=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Novembro"));
n12=Double.parseDouble(JOptionPane.showInputDialog("Digite o Salario de Dezembro"));
n13=Double.parseDouble(JOptionPane.showInputDialog("Digite o Decimo Terceiro "));
Media=(n1+n2+n3+n4+n5+n6+n7+n8+n9+n10+n11+n12+n13)/13;
Total=n1+n2+n3+n4+n5+n6+n7+n8+n9+n10+n11+n12+n13;
{if (Total>=17216.){
}if (Total<=25800.)
Imposto=((n1+n2+n3+n4+n5+n6+n7+n8+n9+n10+n11+n12+n13)*7.5)/100;}
{if (Total>=25801.)
if (Total<=34401.)
Imposto=((n1+n2+n3+n4+n5+n6+n7+n8+n9+n10+n11+n12+n13)*15.)/100;}
{if (Total>=34402.)
if (Total<=42988.)
Imposto=((n1+n2+n3+n4+n5+n6+n7+n8+n9+n10+n11+n12+n13)*22.5)/100;}
{if (Total>=42989.)
Imposto=((n1+n2+n3+n4+n5+n6+n7+n8+n9+n10+n11+n12+n13)*27.5)/100;}
JOptionPane.showMessageDialog(null,"Media:R$ "+Media);
JOptionPane.showMessageDialog(null,"Total:R$ "+Total);
{ if (Total<=17215)
JOptionPane.showMessageDialog(null,"Não paga IMPOSTO");
else{
JOptionPane.showMessageDialog(null,"Imposto:R$ "+Imposto);
}
}
}
}