A. Insert Tab. Specifically, The insert tab, then click "Table" which will open the Insert Table Dialog Box. Good luck!
Answer:
Explanation:
A general idea is that you should repeat the simulation until the results converge. An easy but illustrative example of this is that we want to see if the R function rbinom is accurate in simulating a coin toss with a given probability. We will simulate one coin toss 10000 times, and plot the percentage of heads against the number of coin tosses:
set.seed(1)
n <- 10000
result <- NULL
percent <- NULL
for (i in 1:n) {
result[i] <- rbinom(1,1,0.5)
percent[i] <- sum(result)/i
}
plot(seq(1:10000),percent, type="l")
abline(0.5, 0, lty=2)
B) which ice cream flavor do the most student prefer?
<h2>

</h2>
#include<iostream>
using namespace std;
int main ()
{
float basic, gross, da, hra;
cout<<"Enter basic salary of an employee:";
cin>>basic;
if (basic <25000)
{
da = basic *80/100;
hra = basic *20/100;
}
else if (basic >=25000 & & basic<40000)
{
da = basic *90/100;
hra = basic *25/100;
}
else if (basic>=40000)
{
da = basic *95/100;
hra = basic *30/100;
}
gross = basic + hra + da;
cout<<"\n\t Basic Pay............" <<basic<<endl;
cout<<"\t Dearness Allowance..........." <<da<<endl;
cout<<"\t House Rent Allowance......" <<hra<<endl;
cout<<"\t Gross Salary............." <<gross<<endl;
cout<<"\t - - - - - - - - - - - - - - -" <<endl;
<h2>

</h2>
Enter Basic Salary of an employee : 25000
Basic Pay : 25000
Dearness Allowance : 22500
House Rent Allowance : 6250
Gross Salary : 53750
<h2>

</h2>
<h3>The Expected Output is archived</h3>