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
There are little to no benefits to supplementary field identification programs
VashaNatasha [74]

Answer:

True, supplementary field identification programs tend to limit the use of routine programs that target service delivery using routine systems.

Explanation:

When supplementary field identification programs are applied in a study, they have damaging effects to other systems and programs already in progress targeting certain/similar variables in a study group.Such programs are initiated to boost the already existing systems of programs that are in continuous application( routine basis). As a supplement , we expect more positive results in the rates per the variables included in a study.However, results has proved the opposite.For example, supplementary immunization activities applied in programs targeting demographic and health systems services reveled that such programs reduce the probability of receiving the services provided by other routine health systems conducting continuous vaccination programs to the target groups.

4 0
4 years ago
A sports car has a drag coefficient of 0.29 and a frontal area of 20 ft2, and is travelling at a speed of 120 mi/hour. How much
Andrej [43]

Answer:

Power required to overcome aerodynamic drag is 50.971 KW

Explanation:

For explanation see the picture attached

4 0
3 years ago
Thank you,Thank you udahfsdf
Degger [83]

Answer: Um, a little feedback would help, cause I'm new but if you are thanking someone, let me know and i'll thank them for you, any other questions?

Explanation:

3 0
3 years ago
g Three unequal point masses are attached to a vertical shaft with light rods. Two masses, m and 3m, are at a distance a from th
Alexxandr [17]

Answer:

12ma²

Explanation:

The moment of inertia I = ∑mr² where m = mass and r = distance from shaft

Since we have three masses,

So, I = m₁r₁² + m₂r₂² + m₃r₃² where m₁ = first mass = m, m₂ = second mass = 3m and m₃ = third mass = 2m. Also, r₁ = distance of first mass from shaft = a, r₂ = distance of second mass from shaft = a and r₃ = distance of third mass from shaft = 2a.

I = m₁r₁² + m₂r₂² + m₃r₃²

I = ma² + 3ma² + 2m(2a)²

I = ma² + 3ma² + 2m(4a²)

I = ma² + 3ma² + 8ma²

I = 12ma²

4 0
3 years ago
HW6P2 (20 points) The recorded daily temperature (°F) in New York City and in Denver, Colorado during the month of January 2014
Maurinko [17]

Answer & Explanation:

function Temprature

NYC=[33 33 18 29 40 55 19 22 32 37 58 54 51 52 45 41 45 39 36 45 33 18 19 19 28 34 44 21 23 30 39];

DEN=[39 48 61 39 14 37 43 38 46 39 55 46 46 39 54 45 52 52 62 45 62 40 25 57 60 57 20 32 50 48 28];

%AVERAGE CALCULATION AND ROUND TO NEAREST INT

avgNYC=round(mean(NYC));

avgDEN=round(mean(DEN));

fprintf('\nThe average temperature for the month of January in New York city is %g (F)',avgNYC);

fprintf('\nThe average temperature for the month of January in Denvar is %g (F)',avgDEN);

%part B

count=1;

NNYC=0;

NDEN=0;

while count<=length(NYC)

   if NYC(count)>avgNYC

       NNYC=NNYC+1;

   end

   if DEN(count)>avgDEN

        NDEN=NDEN+1;

   end

   count=count+1;

end

fprintf('\nDuring %g days, the temprature in New York city was above the average',NNYC);

fprintf('\nDuring %g days, the temprature in Denvar was above the average',NDEN);

%part C

count=1;

highDen=0;

while count<=length(NYC)

   if NYC(count)>DEN(count)

       highDen=highDen+1;

   end

   count=count+1;

end

fprintf('\nDuring %g days, the temprature in Denver was higher than the temprature in New York city.\n',highDen);

end

%output

check the attachment for additional Information

8 0
4 years ago
Other questions:
  • A spherical, stainless steel (k 16 W m1 K-1) tank has a wall thickness of 0.2 cm and an inside diameter of 10 cm. The inside sur
    12·1 answer
  • Create a function (prob3_5) that will take inputs of vectors x and y in feet, scalar N, scalars L and W in feet and scalars T1 a
    6·1 answer
  • An airplane tows a banner that is b = 0.8 m tall and ℓ = 25.0 m long at a speed of 150 km/hr. (a) If the drag coefficient based
    12·1 answer
  • Does the Diesel engine have sparkling plugs? If yes, for what reason?
    10·1 answer
  • True False. First angle projection type used in United states.
    15·1 answer
  • 5) Initially, the pressure and temperature of steam inside a solid capsule is at 100-pound force per square inch absolute (psia)
    6·1 answer
  • VICTV
    11·2 answers
  • Technician A states that a brake lathe is used to make a used brake rotor surface "like new". Technician B states that a brake l
    7·1 answer
  • An AM signal having a carrier frequency of 460 kHz is to be mixed with a local oscillator signal at a frequency of 1135 kHz. Wha
    11·1 answer
  • Technology is the study of the designed world. It is used primarily to __________. *
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!