diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..70e34ecb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.errorSquiggles": "disabled" +} \ No newline at end of file diff --git a/Cliente.cpp b/Cliente.cpp index 4065d603..c74cd576 100644 --- a/Cliente.cpp +++ b/Cliente.cpp @@ -3,11 +3,10 @@ #include "Cliente.hpp" void Cliente::print(){ - - std::cout << "[Cliente]" << endl + std::cout << "[Cliente]" << endl << " Nome: " << NOME << endl << " Endereco: " << endereco << endl << " CEP: " << Cep << endl; -} - +} + diff --git a/Cliente.hpp b/Cliente.hpp index 2e70e17b..b7e20dd6 100644 --- a/Cliente.hpp +++ b/Cliente.hpp @@ -5,16 +5,11 @@ using namespace std; class Cliente{ - - public: - +public: string NOME; string endereco; - string Cep; - string AlturaDosPais; - + string Cep; void print(); // imprime na tela os dados de um cliente cadastrado - }; -#endif +#endif diff --git a/Especialista.hpp b/Especialista.hpp index 1cfce6ce..31f0e2ae 100644 --- a/Especialista.hpp +++ b/Especialista.hpp @@ -2,37 +2,22 @@ #define Especialista_HPP #include "Funcionario.hpp" -#include "Cliente.hpp" using namespace std; -double perc = 0.1; -double percWanda = 0.1; - - class Especialista : public Funcionario { - - public: - - public: - string especialidade; - +public: + string especialidade; + double porcentagem; double comissao(double ValorVenda) { - double c = ValorVenda*perc; - return c; + double c = ValorVenda*porcentagem; + return c; } - - void print() { - - std::cout << "[Especialista]" << endl; + cout << "[Especialista]" << endl; Funcionario::print(); - - - - std::cout << " Nome: " << nome << endl + cout << " Nome: " << nome << endl << " SalarioBase: R$ " << fixed << setprecision(2) << SalarioBase < -#include +#include "Funcionario.hpp" using namespace std; -double ValorBONIFICACAO = 15.0; - -class Gerente { - public: - double SalarioBase; // valor mínimo recebido pelo funcionário - string IDADE; - string nome; - int rgFunc; - double bonificacao; - - - void print() { - cout << "[Funcionario]" << endl - << "[Gerente]" << endl - << " Nome: " << nome << endl - << " Idade: " << IDADE << endl - << " RGFunc: " << rgFunc << endl - << " SalarioBase: R$ " << fixed << setprecision(2) << SalarioBase <