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
Is my paper's main idea, or thesis, clearly stated early on (within the first paragraph, ideally)?
Burka [1]
I dont know is your papers main idea stated clearly?
5 0
2 years ago
If a student doesn't major in Engineering as an undergraduate, They could still find a successful
34kurt

Answer:

True

Explanation:

It could either be true or false because you dont really have to be great at something just to do it, you could try new things too.

5 0
2 years ago
Read 2 more answers
2. Determine the surface area of a primary settling tank sized to handle a maximum hourly flow of 0.570 m3/s at an overflow rate
Hitman42 [59]

Answer:

The surface area of the primary settling tank is 0.0095 m^2.

The effective theoretical detention time is 0.05 s.

Explanation:

The surface area of the tank is calculated by dividing the volumetric flow rate by the overflow rate.

Volumetric flow rate = 0.570 m^3/s

Overflow rate = 60 m/s

Surface area = 0.570 m^3/s ÷ 60 m/s = 0.0095 m^2

Detention time is calculated by dividing the volume of the tank by the its volumetric flow rate

Volume of the tank = surface area × depth = 0.0095 m^2 × 3 m = 0.0285 m^3

Detention time = 0.0285 m^3 ÷ 0.570 m^3/s = 0.05 s

7 0
3 years ago
Read 2 more answers
A student takes 60 voltages readings across a resistor and finds a mean voltage of 2.501V with a sample standard deviation of 0.
Lena [83]

Answer:

There are 2 expected readings greater than 2.70 V

Solution:

As per the question:

Total no. of readings, n = 60 V

Mean of the voltage, \mu = 2.501 V

standard deviation, \sigma = 0.113 V

Now, to find the no. of readings greater than 2.70 V, we find:

The probability of the readings less than 2.70 V, P(X\leq 2.70):

z = \frac{x - \mu}{\sigma} = \frac{2.70 - 2.501}{0.113} = 1.761

Now, from the Probability table of standard normal distribution:

P(z\leq 1.761) = 0.9608

Now,

P(X\geq 2.70) = 1 - P(X\leq 2.70) = 1 - 0.9608 = 0.0392 = 3.92%

Now, for the expected no. of readings greater than 2.70 V:

P(X\geq 2.70) = \frac{No.\ of\ readings\ expected\ to\ be\ greater\ than\ 2.70\ V}{Total\ no.\ of\ readings}

No. of readings expected to be greater than 2.70 V = P(X\geq 2.70)\times Total\ no.\ of\ readings

No. of readings expected to be greater than 2.70 V = 0.0392\times 60 = 2.352 ≈ 2

7 0
3 years ago
T he area of a circle is pr 2. Define r as 5, then find the area of a circle,using MATLAB®.(b) The surface area of a sphere is 4
aksik [14]

Answer:

Area of Circle = 78.5398

Surface Area of Sphere =  1.2566 x 10^3 = 1256.6 ft

Volume of Sphere =  33.5103 ft

Explanation:

Please find below the written MatLab script used to solve the problem. I had to define r in each case to solve for the Area of the circle, the surface area and the volume of the Sphere.

r=5; % define r as 5

a=pi*r^2;% calculate the area of the circle

AreaOfCircle=a

r=10; % define r and 10 ft

sa=4*pi*r^2; %Calculate the surface area of the sphere

SphereSurfaceArea=sa

r=2;% define r as 2 ft

vs=(4/3)*pi*r^3;% Calculate the volume of the sphere

VolumeShere=vs

3 0
3 years ago
Read 2 more answers
Other questions:
  • A motor vehicle has a mass of 1.8 tonnes and its wheelbase is 3 m. The centre of gravity of the vehicle is situated in the centr
    14·1 answer
  • A heat engine does 210 J of work per cycle while exhausting 440 J of waste heat. Part A What is the engine's thermal efficiency?
    6·1 answer
  • A very specific part of the population is called a
    6·1 answer
  • Impact strips may be designed into a bumper cover.<br> True<br> False
    14·1 answer
  • When moving cylinders always remove and make
    8·1 answer
  • "It is better to be a human being dissatisfied than a pig satisfied; better to be Socrates dissatisfied than a fool satisfied. A
    7·1 answer
  • Complete the following sentence.
    7·1 answer
  • 3. A steel pipe of outside diameter 20 mm and thickness 3 mm is
    14·1 answer
  • Engineering Specificaitons is ...
    9·1 answer
  • Use the drop-down menus to complete the statements about using OneNote in Outlook meeting requests.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!