For you to be allow to participate in on going convocation,you must have meet up with the school criteria and completed your registration. If any of these conditions are not met , you can not be eligible to graduate with the present graduating students. Write a c++ program for the automation of this system
Solution code
#include <iostream>
using namespace std;
int main()
{
int criteria_response;
cout << "Have you met with the school criteria: and completed your registration.: "<<endl;;
cout<<"Enter 1 for YES and any other number for NO"<<endl;
cin >> criteria_response;
int registration_response;
cout << "Have you completed your registration.: "<<endl;;
cout<<"Enter 1 for YES and any other number for NO"<<endl;
cin >> registration_response;
if(criteria_response==1 && registration_response==1 )
{
cout<<"The student is eligible for graduation"<<endl;
}
else
{
cout<<"The student is not eligible for graduation"<<endl;
}
return 0;
}
sample output
Comments
Leave a comment