Answer: Ability to derive optimal solutions
Explanation:
One of the main disadvantages of simulation is ability to derive optimal solutions. As, the solution does not required to have a closed form and procedure does not require any weighting and the hard constraint. Stimulation outcome are not optimal to induced specific response because of the lack of quantitative models.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
"D" option is correct
"Each statement needs to end in a semicolon."
semicolon must use in program.without semicolon program doesn't accept.so each statement needs to end in a semicolon.
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:
Yes
Explanation:
For example, We need to write down the names of student in a school for survey purposes, rather than tell everyone to write their names on a sheet of paper and submit, we can instruct that names be written according to their classes and then written on the class sheets alphabetically.
Logically names will be written according to the classes from Class 1 - 10, then on the class sheet alphabetically from A - Z. its better represented that way for easy understanding and better collation and interpretation of data.