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
IRISSAK [1]
3 years ago
9

Print "userNum1 is negative." if userNum1 is less than 0. End with newline. Assign userNum2 with 2 if userNum2 is greater than 1

0. Otherwise, print "userNum2 is less or equal 10.". End with newline.
Engineering
1 answer:
miv72 [106K]3 years ago
3 0

Answer:

From the question, we have two variables

1. userNum1

2. userNum2

And we are to print "userNum1 is negative" if userNum1 is less than 0.

Then Assign userNum2 with 2 if userNum2 is greater than 10.

Otherwise, print "userNum2 is less or equal 10.".

// Program is written in C++ Programming Language

// Comments are used for explanatory purpose

// Program starts here

#include<iostream>

using namespace std;

int main ()

{

// Declare variables

int userNum1, userNum2;

// Accept input for these variables

cin>>userNum1, userNum2;

// Condition 1

if(userNum1 < 0)

{

cout<<"userNum1 is negative"<<'\n';

}

// Condition 2

if(userNum2 > 10)

{

userNum2 = 2;

}

// If condition is less than 10

else

{

cout<<"userNum2 is less or equal to 10"<<\n;

}

return 0;

}

// End of Program.

You might be interested in
On some engines, after torquing cylinder head fasteners, you
djverab [1.8K]

Answer:

Re-torque the bolts as required while your engine is warm. But if you're using aluminum cylinder heads, you should wait until your engine is complete cooled until re-torquing

3 0
3 years ago
What is the governing ratio for thin walled cylinders?
Ann [662]

Answer:

The governing ratio for thin walled cylinders is 10 if you use the radius. So if you divide the cylinder´s radius by its thickness and your result is more than 10, then you can use the thin walled cylinder stress formulas, in other words:

  • if \frac{radius}{thickness} >10 then you have a thin walled cylinder

or using the diameter:

  • if \frac{diameter}{thickness} >20 then you have a thin walled cylinder
3 0
3 years ago
Given the scope of the problems and cheating exposed in the VW emissions cheating scandal, there's reason to believe the scandal
Soloha48 [4]

Answer:

False

Explanation: There is no reason to believe that it will spread to gasoline engines and carbon dioxide emissions, which are considered a prime cause of climate change. It scandal was specifically concerned with diesel engines as volkswagen during the year 2015 had a major push and requirement to sell diesel cars in the US, the requirement was backed by a huge marketing campaign advertising its cars' low emissions.

The issue was discovered by the Environmental protection agency of the United States of America and Volkswagen has taken reasonable precautions and responsibilities for their Emission cheats.

5 0
3 years ago
why is my ad not working? it will say we have a ad just for you but it will take forever to show me the ad
vodka [1.7K]

Explanation:

Maybe your phone is being slow. Turn of your data and turn it back on

6 0
4 years ago
Read 2 more answers
Chemical engineering got is unofficial start around the time of the __________ __________ ________.
Gre4nikov [31]

Answer:

Option A,  World War II

Explanation:

During the period of industrial revolution around 1915-25, the chemical engineering has taken a new shape. During this period (i.e around the world war I), there was rise in demand for  liquid fuels, synthetic fertilizer, and other chemical products. This lead to development of chemistry centre in Germany . There was rise in use of synthetics fibres and polymers. World war II saw the growth of catalytic cracking, fluidized beds, synthetic rubber, pharmaceuticals production, oil & oil products, etc. and because of rising chemical demand, chemical engineering took a new shape during this period

Hence, option A is the right answer

4 0
3 years ago
Other questions:
  • Four race cars are traveling on a 2.5-mile tri-oval track. The four cars are traveling at constant speeds of 195 mi/h, 190 mi/h,
    15·1 answer
  • A cylindrical hot water storage tank (see sketch) for a set of collectors is located in the basement of a dwelling. The tank is
    13·1 answer
  • 3. An isolated system has an initial temperature of 30oC. It is then placed on top of a Bunsen burner whose temperature is 70oC
    10·1 answer
  • Mild neurotoxins can cause which of these physical effects?
    11·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    11·1 answer
  • A 1/4th scale car is to be tested in a wind tunnel. If the full scale speed of the car is 30m/s, what should be the wind tunnel
    9·1 answer
  • Break lines may be drawn as
    14·1 answer
  • on the same scale for stress, the tensile true stress-true strain curve is higher than the engineeringstress-engineering strain
    10·1 answer
  • Is Tesla French, American, German, or Russian?
    10·2 answers
  • Please look at the picture for question.
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!