#include <stdio.h>
#include <stdlib.h>
int main( int argc, char * argv[ ] ) {
//Variáveis
double numero_horas_trabalhadas;
double salarioMinimo;
double numero_horas_extras;
double valor_hora, valor_hora_extra, salarioBruto, salarioTotal;
//Entrada de dados
printf ( "Olá, vamos calcular o seu salário!" ) ; printf ( "\n Digite as horas trabalhadas: " ) ; scanf ( "%lf" ,& numero_horas_trabalhadas
) ; printf ( "\n Digite o valor do salario minimo: " ) ; scanf ( "%lf" ,& salarioMinimo
) ; printf ( "\n Digite o numero de horas extras trabalhadas: " ) ; scanf ( "%lf" ,& numero_horas_extras
) ; //Processamento
valor_hora = salarioMinimo/ 8 ;
valor_hora_extra = salarioMinimo/ 4 ;
salarioBruto = ( numero_horas_trabalhadas * valor_hora) ;
valor_hora_extra = ( numero_horas_trabalhadas * valor_hora_extra) ;
salarioTotal = salarioBruto + valor_hora_extra;
//Saída de informação
printf ( "O valor do salario minimo e : %f" , salarioTotal
) ; return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pIHsKCS8vVmFyacOhdmVpcwoJZG91YmxlIG51bWVyb19ob3Jhc190cmFiYWxoYWRhczsKCWRvdWJsZSBzYWxhcmlvTWluaW1vOwoJZG91YmxlIG51bWVyb19ob3Jhc19leHRyYXM7Cglkb3VibGUgdmFsb3JfaG9yYSwgdmFsb3JfaG9yYV9leHRyYSwgc2FsYXJpb0JydXRvLCBzYWxhcmlvVG90YWw7CgkvL0VudHJhZGEgZGUgZGFkb3MKCXByaW50ZigiT2zDoSwgdmFtb3MgY2FsY3VsYXIgbyBzZXUgc2Fsw6FyaW8hIik7CglwcmludGYoIlxuRGlnaXRlIGFzIGhvcmFzIHRyYWJhbGhhZGFzOiAiKTsKCXNjYW5mKCIlbGYiLCZudW1lcm9faG9yYXNfdHJhYmFsaGFkYXMpOwoJcHJpbnRmKCJcbkRpZ2l0ZSBvIHZh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