1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Elena L [17]
3 years ago
7

Basic C++ For Loop I'm trying to learn. Replit tells me that the for in the forloop is an error, but I don't know what's wrong.

Can anyone help?

Engineering
1 answer:
STatiana [176]3 years ago
8 0

Answer:

  curly brackets are missing

Explanation:

The body of the main() function need to be enclosed in curly brackets. Try this:

int P = 3000;

int main( ) {

  for (int t = 0; t < 10; t++) {

     cout << P;

  }

}

You might be interested in
Evaluate the performance of the proposed heat pump for three locations Using R134a. Discuss the effect of outdoor temperature on
Phoenix [80]

Answer:Table 2.2: Differences in runstitching times (standard − ergonomic).

1.03 -.04 .26 .30 -.97 .04 -.57 1.75 .01 .42

.45 -.80 .39 .25 .18 .95 -.18 .71 .42 .43

-.48 -1.08 -.57 1.10 .27 -.45 .62 .21 -.21 .82

A paired t-test is the standard procedure for testing this null hypothesis.

We use a paired t-test because each worker was measured twice, once for Paired t-test for

each workplace, so the observations on the two workplaces are dependent. paired data

Fast workers are probably fast for both workplaces, and slow workers are

slow for both. Thus what we do is compute the difference (standard − er-

gonomic) for each worker, and test the null hypothesis that the average of

these differences is zero using a one sample t-test on the differences.

Table 2.2 gives the differences between standard and ergonomic times.

Recall the setup for a one sample t-test. Let d1, d2, . . ., dn be the n differ-

ences in the sample. We assume that these differences are independent sam-

ples from a normal distribution with mean µ and variance σ

2

, both unknown.

Our null hypothesis is that the mean µ equals prespecified value µ0 = 0

(H0 : µ = µ0 = 0), and our alternative is H1 : µ > 0 because we expect the

workers to be faster in the ergonomic workplace.

The formula for a one sample t-test is

t =

¯d − µ0

s/√

n

,

where ¯d is the mean of the data (here the differences d1, d2, . . ., dn), n is the The paired t-test

sample size, and s is the sample standard deviation (of the differences)

s =

vuut

1

n − 1

Xn

i=1

(di − ¯d )

2 .

If our null hypothesis is correct and our assumptions are true, then the t-

statistic follows a t-distribution with n − 1 degrees of freedom.

The p-value for a test is the probability, assuming that the null hypothesis

is true, of observing a test statistic as extreme or more extreme than the one The p-value

we did observe. “Extreme” means away from the the null hypothesis towards

the alternative hypothesis. Our alternative here is that the true average is

larger than the null hypothesis value, so larger values of the test statistic are

extreme. Thus the p-value is the area under the t-curve with n − 1 degrees of

freedom from the observed t-value to the right. (If the alternative had been

µ < µ0, then the p-value is the area under the curve to the left of our test

Explanation: The curve represents the sum total of the evaluation

4 0
3 years ago
What is the optimal temperature for recharging a battery?
just olya [345]

Answer:

I think it's A

Hope that helped you

4 0
3 years ago
What are the reasons for linkage problems?
joja [24]
Linkage disequilibrium is influenced by many factors, including selection, the rate of genetic recombination, mutation rate, genetic drift, the system of mating, population structure, and genetic linkage
4 0
3 years ago
A 13 mm. diameter bar is being pulled by a load of 1000 kg. What is the pressure in psi.
zheka24 [161]

Answer:

pressure = 10704 Psi

Explanation:

given data

diameter = 13 mm = 13 × 0.0394 = 0.5122 inch

load = 1000 kg = 1000 × 2.205 = 2205 pound

we convert these given values to pound and inches so we can solve our answer in Psi units

to find out

pressure

solution

we know pressure formula that is express as

pressure = \frac{load}{area}     ..................1

here area = \frac{\pi }{4} (0.5122)^2

area = 0.206 in²

so from equation 1 we put value and get pressure

pressure = \frac{2205}{0.206}

pressure = 10703.88 psi

pressure = 10704 Psi

8 0
3 years ago
Write any four factors that may hamper the unity in diversity feature of Nepal and the Nepalese .​
Natasha_Volkova [10]

Answer:

Explanation:

different religions

people of different languages

different clothing patterns

different eating habits

4 0
2 years ago
Other questions:
  • Consider a dip-coating process where a very long (assume infinitely long) wire(solid) with radius, ri, is being pulled verticall
    13·1 answer
  • A stream of air enters a 7.00-cm ID pipe at a velocity of 30.0 m/s at 27.0°C and 1.80 bar (gauge). At a point downstrream, the a
    15·1 answer
  • A driver on a leveltwo-lane highway observes a
    6·1 answer
  • 1.<br> se reception. It's<br> In remote areas, your GPS device<br> a good idea to have a _
    10·1 answer
  • Calculate the reluctance of a 4-meter long toroidal coil made of low-carbon steel with an inner radius of 1.75 cm and an outer r
    7·1 answer
  • The information on a can of pop indicates that the can contains 360 mL. The mass of a full can of pop is 0.369 kg, while an empt
    14·1 answer
  • A heated plate is built into the wall of a large room. The room is maintained at 300 K. The exposed surface of the plate is main
    8·1 answer
  • Many farms and ranches use electric fences to keep animals from getting into or out of specific pastures. When switched on, an e
    8·2 answers
  • Dndbgddbdbhfdhdhdhhfhffhfhhddhhdhdhdhdhd​
    11·2 answers
  • A solid steel shaft ABCDE turns freely in bearings at points A and E. The shaft is driven by the gear at C, which applies a torq
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!