The problem that Mitra identifies in education is that kids don't go to school, don't know what a computer or the internet is. Teachers don't want to go to places where they're needed the most.
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();
}
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.
Answer: Option (D) is correct
Explanation:
Array subscripts are used for refereeing to a individual element in the array.It is created by subscript operator for naming it.It can define the value about location often element. Array subscript can contain whole numbers only.
- Other options are incorrect because array can be reset,other number along with the whole numbers can get stored in array and it can take high execution time.
- Thus, the correct option is option(D.)