Questions
#include <iostream> using namespace std; void count( int begin[], int end[] ) { int index, current[4]...

#include <iostream>
using namespace std;

void count( int begin[], int end[] )
{
int index, current[4] = { begin[0], begin[1], begin[2], begin[3] };

add:
goto print;

carry:
if ( current[index] < end[index] - 1 ) {
current[index]++;
goto add;
}
else if ( index > 0 ) {
current[index] = begin[index];
index--;
goto carry;
}
else return;

print:
cout << current[0] << current[1] << current[2] << current[3] << endl;
index = 3;
goto carry;

}

int main( )
{
int begin[4] = { 0, 0, 0, 0 };
int end[4] = { 2, 3, 2, 4 };

count(begin, end);

return 0;
}
remove all goto and get the same output
please type code and explain the code. thank you.

In: Computer Science

The frequency distribution shown in the following table lists the number of hours per day a...

The frequency distribution shown in the following table lists the number of hours per day a randomly selected sample of teenagers spent watching television. Where possible, determine what percent of the teenagers spent the following number of hours watching television. (Round your answers to one decimal place. If not possible, enter IMPOSSIBLE.)

Hours per day Number of
Teenagers
0 ≤ x < 1 17
1x < 2 31
2x < 3 24
3 ≤ x < 4 37
4x < 5 27
5 ≤ x < 6 11
6 ≤ x < 7 15

(a) less than 4 hours
%

(b) at least 5 hours
%

(c) at least 1 hour
%

(d) less than 2 hours
%

(e) at least 2 hours but less than 4 hours
%

(f) more than 3.5 hours
%

In: Statistics and Probability

1a) Find all first and second partial derivatives of f(x,y)=x^4−3x^2y^2+y^4 1b) w=xycosz, x=t, y=t^2, and z=t^3....

1a) Find all first and second partial derivatives of f(x,y)=x^4−3x^2y^2+y^4

1b) w=xycosz, x=t, y=t^2, and z=t^3. Find dw/dt using the appropriate Chain Rule.

1c) Find equation of the tangent plane and find a set of parametric equations for the normal line to the surface z = ye^(2xy) at the point (0, 2, 2).

In: Math

Determination Number Complex Mass (g) Consumed HCl volume (mL) Determination 1 0.260 g 4 mL Determination...

Determination Number

Complex Mass (g)

Consumed HCl volume (mL)

Determination 1

0.260 g

4 mL

Determination 2

0.300 g

5 mL

[Cu(NH3)4]SO4.H2O (aq) +4HCl (aq) → Cu 2+ (aq) + 4NH + 4 (aq) + 4Cl − (aq) +SO 24 (aq) +H2O (l)

Concentration of HCl Solution, mol/L = 0.50M

1. Mass of the complex for both determinations using the stoichiometric ratio

2. Percentage purity of your complex

3. Based on the % purity, what is the correct range of values for the value of ε which you calculated earlier? (Hint: think about percentage error!)

In: Chemistry

The following data was collected to explore how a student's age and GPA affect the number...

The following data was collected to explore how a student's age and GPA affect the number of parking tickets they receive in a given year. The dependent variable is the number of parking tickets, the first independent variable (x1) is the student's age, and the second independent variable (x2) is the student's GPA.

Step 1 of 2 : Find the p-value for the regression equation that fits the given data. Round your answer to four decimal places.

Age   GPA   Number of Tickets
19 2   0
19 2   1
19 2   4
20 3   5
20 3   5
21 3   7
22 4   7
23 4   8
24 4   9

In: Statistics and Probability

Suppose we want to predict job performance of Chevy mechanics based on mechanical aptitude test scores....

Suppose we want to predict job performance of Chevy mechanics based on mechanical aptitude test scores.

Job Performance Mechanical Aptitude
1 40
2 45
1 38
3 50
2 48
3 55
3 53
4 55
4 58
3 40
5 55
3 48
3 45
2 55
4 60
5 60
5 60
5 65
4 50
3 58
6 60
3 45

Test at 0.05 level of significance. Assuming data is normal.  Use 2 decimal places.

STATISTICS = _____

R = _____

COEFFICIENT OF DETERMINATION = _____

SLOPE OF THE LINE = _____

Y INTERCEPT = _____

In: Economics

Add each element in origList with the corresponding value in offsetAmount. Print each sum followed by...

Add each element in origList with the corresponding value in offsetAmount. Print each sum followed by a space.
Ex: If origList = {4, 5, 10, 12} and offsetAmount = {2, 4, 7, 3}, print:

6 9 17 15 

import java.util.Scanner;

public class VectorElementOperations {
public static void main (String [] args) {

final int NUM_VALS = 4;
int[] origList = new int[NUM_VALS];
int[] offsetAmount = new int[NUM_VALS];
int i;

origList[0] = 20;
origList[1] = 30;
origList[2] = 40;
origList[3] = 50;

offsetAmount[0] = 4;
offsetAmount[1] = 6;
offsetAmount[2] = 2;
offsetAmount[3] = 8;

*insert code*

System.out.println("");
}
}

In: Computer Science

Using samples of 194 credit card statements, an auditor found the following: Use Table-A. Sample 1...

Using samples of 194 credit card statements, an auditor found the following:
Use Table-A.

Sample 1 2 3 4
Number with errors 3 1 6 12


a.
Determine the fraction defective in each sample. (Round your answers to 4 decimal places.)
  

Sample Fraction defective
1
2
3
4


b.
If the true fraction defective for this process is unknown, what is your estimate of it? (Round your answer to 1 decimal place. Omit the "%" sign in your response.)

Estimate              %


c.
What is your estimate of the mean and standard deviation of the sampling distribution of fractions defective for samples of this size? (Round your intermediate calculations and final answers to 4 decimal places.)
  

Mean
Standard deviation


d.
What control limits would give an alpha risk of .03 for this process? (Round your intermediate calculations to 4 decimal places.Round your "z" value to 2 decimal places and other answers to 4 decimal places.)
  

z =  ,     to  

e.What alpha risk would control limits of .0470 and .0098 provide? (Round your intermediate calculations to 4 decimal places.Round your "z" value to 2 decimal places and "alpha risk" value to 4 decimal places.)
  

z =  , alpha risk =  

f.Using control limits of .0470 and .0098, is the process in control?

  • no

  • yes


g.Suppose that the long-term fraction defective of the process is known to be 2 percent. What are the values of the mean and standard deviation of the sampling distribution? (Round your intermediate calculations and final answers to 2 decimal places.)

Mean
Standard deviation


h.
Construct a control chart for the process, assuming a fraction defective of 2 percent, using two-sigma control limits. Is the process in control?

  • Yes

  • No

In: Statistics and Probability

What is the maximum number of electrons in an atom that can have the following quantum...

What is the maximum number of electrons in an atom that can have the following quantum numbers?

(a) n = 4, ms = -1/2

____

(b) n = 5, l = 3

____

(c) n = 6, l = 3, ml = -2

____

(d) n = 2, l = 1, ml = -1, ms = +1/2

____

In: Chemistry

The following stem-and-leaf plot represents the prices in dollars of general admission tickets for the last...

The following stem-and-leaf plot represents the prices in dollars of general admission tickets for the last 1818 concerts at one venue. Use the data provided to find the quartiles.

Ticket Prices in Dollars

Stem   Leaves              
4   2   7   9   9          
5   1   3   4   9          
6   2   3   6              
7   0   1   2   3   5   7   7

In: Statistics and Probability