Escolar Documentos
Profissional Documentos
Cultura Documentos
CODIGO COLABORADORES
public class Colaboradores {
}
public static void main ( String[] args ){
private String nome;
protected String endereco;
private String telefone1;
@SuppressWarnings("unused")
Colaboradores(String n,String end,int telefone, int rg, int cpf){
}
{
String n;
String nome = n;
String end;
String endereo = end ;
int tel;
int telefone1 = tel;
}
public String toString()
{
return "Nome: "+nome+" \nEndereco: "+endereco+" \nTelefone:
"+telefone1;
}
}
CODIGO CELETISTA
class Celetista extends Colaboradores{
Celetista(String n, String end, int telefone, int rg, int cpf) {
super(n, end, telefone, rg, cpf);
}
private static String nome;
private static String endereo;
private static int telefone;
private static int rg;
private static int cpf;
double salrioMensal;
nome = ((Object) ler).nextLine();
System.out.println("Digite seu endereo:");
endereco = ler.nextLine();
System.out.println("Qual seu telefone?");
telefone =ler.nextLine ();
System.out.println("Qual seu rg?");
float salarioBruto;
{
float horasTrabalhadas;
salarioBruto = salarioBruto * horasTrabalhadas;
double DescontoIrrf = salarioBruto * 0.015;
}
if (salarioBruto > 5000)
{
Object pis_confins_csll = Irrf * 0.0465;
String nome;
System.out.println (nome+ " seu imposto e de 4.65%"+ pis_confins_csll);
}
if (salarioBruto >5000)
{
double Iss = Irrf * 0.04;
String nome;
System.out.println (nome+ " seu imposto e de 4%"+ Iss);
}
}
int rg;
int cpf;
float salarioMensal;
float irrf;
float calculo;
float calculo1;
float descontoir = 0;
float descontoinss = 0;
float salarioLiquido;
float salarioLiquido0;
float salarioLiquido1;
float horaExtra;
float salHoraExtra = 0;
else{
if(uniCon.getHorasTrabalhadas() < 220){
totalBruto = salarioMensal;
}
if(totalBruto < 1499.15) {
irrf = 0;
}
if((totalBruto > 1499.15) && (totalBruto > 2246.75)){
calculo = ((totalBruto/100)*7);
descontoir = (float) (calculo - 112.43);
}
if((totalBruto > 2246.75) && (totalBruto > 2995.70)){
calculo = ((totalBruto/100)*15);
descontoir = (float) (calculo - 280.94);
}
if((totalBruto > 2995.70) && (totalBruto > 3343.19)){
calculo = ((totalBruto/100)*22);
descontoir = (float) (calculo - 505.62);
}
if (totalBruto > 3342.19){
calculo = ((totalBruto/100)*27);
descontoir = (float) (calculo - 692.78);
}
salarioLiquido0 = descontoir;
COLABORADORES
public class Colaborador {
private String endereco;
private String nome;
private String telefone;
private String rg;
private String cpf;
private int horasTrabalhadas;
public Colaborador( ){
}
public Colaborador( int horasTrabalhadas, String rg,String cpf, String
nome, String endereco, String telefone)
{
this.setEndereco(endereco);
this.setNome(nome);
this.setRg(rg);
this.setCpf(cpf);
this.setTelefone(telefone);
this.setHorasTrabalhadas(horasTrabalhadas);
}
@Override
public String toString() {
// TODO Auto-generated method stub
return super.toString();
}
void setNome(String nome) {
this.nome = nome;
}
String getNome() {
return nome;
}
void setEndereco(String endereco) {
this.endereco = endereco;
}
String getEndereco() {
return endereco;
}
CONCLUSO
No conseguimos atender a expectativa, ou seja, o trabalho no est
completo devido falta de competncia para termin-lo.
Conseguimos desenvolver as classes Colaboradores , Celetista e
colaboradoresPJ, mas no conseguimos agrupar e ou usar as classes
conforme pedido.
O trabalho est incompleto nesta primeira fase sendo assim nos
comprometeremos em entregar uma verso completa e perfeita do mesmo.