Make a program in c ++ that asks me for a qualification and validates that it is valid between 0 and 100, Once it is valid if it is greater than or equal to 70 it is approved, if it is less than 70 it is rejected, but if it is 0, it repeats the course, if you get 100 you get a scholarship.
this is the code:
#include <iostream>
using namespace std;
int main()
{
int calif;
/*
si es mayor o igual a 70, esta aprobado
si es menor a 70 esta reprobado
si saca 0 debe repetir curso
si saca 100 obtiene una beca
*/
cout<<"\n\tLISTADO DE CALIFICACIONES";
cout<<"\n Ingrese la calificacion: ";
cin>>calif;
if(calif==0)
{
cout<<"Repite curso";
}
else
if(calif>=70)
{
cout<<"Alumno Aprobado, FELICIDADES";
}
else
if(calif<=69)
{
cout<<"Alumno Reprobado, LO SIENTO";
}
else
if(calif>=100)
{
cout<<"Alumno con BECA";
}
return 0;
}
The detail is that the 100 does not show it to me, they will know what I am wrong with or what is missing.