Answer:
# include<iostream>
#include<conio.h>
using namespace std;
main()
{
char choice;
cout<<"Enter your Choice"
cin>>choice;
switch (choice)
{
case 'y':
cout<<"Your request is being processed";
break;
case 'n':
cout<<"Thank you anyway for your consideration";
break;
case 'h':
cout<<"Sorry, no help is currently available";
default:
cout<<"Incorrect Choice";
break;
}
getch();
}
Step-by-step explanation:
In this program, a character type variable named as choice is selected for the input. This choice variable can be y, n or h as per requirement of the program. Switch statement is chose for the selection of output statement with respect to its mentioned input. This program shows the output statement for above mentioned characters. In case of any other character the program returns Incorrect choice and ends.