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;...


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);
}



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here