Answer:
#include <stdio.h>
//below is the function prototype for the checkStatus function
//It simply tells the compiler what the return type and
//parameter types it takes. It is nothing more than a copy
//of the function header (line 16)
int checkStatus();
int main(){
int status;
status = checkStatus();
printf("Your vaccination status code is %d\\", status);
}
int checkStatus(){
int selection;
printf("~ Status of vaccination ~\\");
printf("-------------------------\\");
printf("1. Pending for appointment\\");
printf("2. Completed first dose\\");
printf("3. Completed second dose\\");
printf("4. Exit\\\\");
printf("Enter your selection(1 - 4): ");
scanf("%d", &selection);
return selection;
}
Step-by-step explanation: