#include <iostream>
#include<math.h>
#include<string>
using namespace std;
int main()
{
float nota1, nota2, nota3, prom, a, b, c;
cout << "INGRESE LA PRIMERA NOTA : ";
cin >> nota1;
cout << "INGRESE LA SEGUNDA NOTA: ";
cin >> nota2;
cout << "INGRESE LA TERCERA NOTA: ";
cin >> nota3;
a = (nota1 * 5) / (35);
b = (nota2 * 10) / (35);
c = (nota3 * 20) / (35);
prom = (a + b + c);
cout << endl;
if (prom < 0)
{
cout << "ERROR!, RIVISAR LAS NOTAS INGRESDAS Y VOLVER A INTENTARLO" <<
endl;
}
if (prom >= 0)
{
if (prom < 3)
{
cout << "la materia a Sido reprobada" << endl;
}
}
if (prom >=3)
{
if (prom <= 5)
{
cout << "la materia a Sido aprobada" << endl;
}
}
if (prom > 5)
{
cout << "ERROR!, RIVISAR LAS NOTAS INGRESDAS Y VOLVER A INTENTARLO." <<
endl;
}
cout << "el promedio de la nota es: " << prom << "" << endl;
system("pause");
}
-----------------------------------------------------------------------------------
-----------------------
#include<iostream>
#include<math.h>
#include<string>
using namespace std;
int main()
{
int sueldo, categoria, aumento, total;
cout << "INGRESE EL VALOR DE SU SUELDO: ";
cin >> sueldo;
cout << "INGRESE SU CATEGORIA: ";
cin >> categoria;
if (categoria == 1)
{
aumento = ((sueldo * 15) / 100);
cout << "EL AUMENTO POR ESTAR EN LA CATEGORIA 1 ES DEL 15% Y SU AUMENTO
ES: " << aumento << endl;
}
if (categoria == 2)
{
aumento = ((sueldo * 10) / 100);
cout << "EL AUMENTO POR ESTAR EN LA CATEGORIA 1 ES DEL 10% Y SU AUMENTO
ES: " << aumento << endl;
}
if (categoria == 3)
{
aumento = ((sueldo * 8) / 100);
cout << "EL AUMENTO POR ESTAR EN LA CATEGORIA 1 ES DEL 8% Y SU AUMENTO
ES: " << aumento << endl;
}
if (categoria == 4)
{
aumento = ((sueldo * 7) / 100);
cout << "EL AUMENTO POR ESTAR EN LA CATEGORIA 1 ES DEL 7% Y SU AUMENTO
ES: " << aumento << endl;
}
total = (sueldo + aumento);
cout << "SU SUELDO TOTAL ES DE: " << total << endl;
system("pause");