Case Study 15Statistical Process Control43variables, control charts for attributes (the p-chart), control charts for attributes (the c-chart), and the process capability ratio/index. Insert a command button that, whenclicked on, submits the user’s choice.a.If the user selects the first option button, display two text boxes where the usercan type in the sample size and number of replications. Insert a command buttonthat, when clicked –on, displays a table that has as many rows as the number ofreplications and as many columns as the sample size. The user types in theresults from the observations in this table. Insert a command button that, whenclicked on, does the following: submits the data entered by the user;calculatesR,x, UCLRand LCLR, UCLxand LCLx;creates the R-chart andx-chart; and plots the observations on these charts.