This is a C program. I want you to convert it to a C++ program. Also provide a screenshot that it is still working.here is the C program to be converted:
#include #include int main(){ char Gender; int Yr; clrscr(); printf("Enter your Gender [M or F]: "); scanf("%c",&Gender); printf("Enter your Year Level: "); scanf("%d",&Yr); if(Gender=='M') if (Yr >= 2) printf("You are qualified for Try-out!"); else printf("Only year level 2 and up is allowed"); else printf("The Try-out is for Male student only!!!"); getch(); return(0);}
clrscr(); printf("Enter your Gender [M or F]: "); scanf("%c",&Gender); printf("Enter your Year Level: "); scanf("%d",&Yr); if(Gender=='M') if (Yr >= 2) printf("You are qualified for Try-out!"); else printf("Only year level 2 and up is allowed"); else printf("The Try-out is for Male student only!!!"); getch(); return(0);}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here