#include <iostream>
#include <string>

using namespace std;

int main()
{
    string nombre;
    float ventas, bono = 0, sueldoBase = 300, sueldoTotal;

    cout << "==========================================" << endl;
    cout << " EMPRESA BTA - CALCULO DE SUELDO DIARIO " << endl;
    cout << "==========================================" << endl;

    cout << "Ingrese el nombre del vendedor: ";
    getline(cin, nombre);

    cout << "Ingrese el monto de ventas del dia: $";
    cin >> ventas;

    if (ventas >= 15000)
    {
        bono = ventas * 0.15;
    }
    else if (ventas >= 10000)
    {
        bono = ventas * 0.10;
    }
    else if (ventas >= 5000)
    {
        bono = ventas * 0.05;
    }
    else
    {
        bono = 0;
    }

    sueldoTotal = sueldoBase + bono;

    cout << "\n========== RESULTADOS ==========" << endl;
    cout << "Nombre del vendedor: " << nombre << endl;
    cout << "Ventas realizadas: $" << ventas << endl;
    cout << "Bono obtenido: $" << bono << endl;
    cout << "Sueldo total del dia: $" << sueldoTotal << endl;
    cout << "================================" << endl;

    return 0;
}