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
Hot air at an average temperature of 100 degC flows through a 3 m long tube with an inside diameter of 60 mm. The temperature of
Arte-miy333 [17]

Answer:

\dot Q = 912.017\,W

Explanation:

The heat transfer rate due to convection is calculated by this formula:

\dot Q = h_{air}\cdot A_{tube, in}\cdot (T_{air} - T_{tube})

The output is determined by replacing terms:

\dot Q = (20.1\,\frac{W}{m^{2}\cdot ^{\textdegree}C})\cdot (\pi )\cdot (0.06\,m)\cdot (3\,m)\cdot (100^{\textdegree}C-20^{\textdegree}C)

\dot Q = 912.017\,W

6 0
3 years ago
Read 2 more answers
Consider the following set of processes, with the length of the CPU burst given in milliseconds:Process Burst Time PriorityP1 2
Iteru [2.4K]

Answer and Explanation:

The answer is attached below

6 0
3 years ago
determine the components of each reaction at the ball and socket joint A and the tension in each cable necessary for equilibrium
Kitty [74]

The components of the reaction force in a ball and socket joint include the horizontal and vertical reaction forces.

<h3>What is a reaction force?</h3>

A reaction force is an equal but oppositely directed force which forms a pair which the applied or action force.

Tension is a type of force which is present in a string or a rope supporting a body or object.

A ball and socket jont is a type of joint in the body which is able to rotate freely about an axis.

The components of the reaction force in a ball and socket joint include the horizontal and vertical reaction forces.

Learn more about reaction forces at: brainly.com/question/1013858

#SPJ1

7 0
2 years ago
Which sentence highlights the best way of site planning?
Nadusha1986 [10]

Answer:

Which sentence highlights the best way of site planning?

A group of construction planners are in a discussion over the most suitable plot to construct new buildings. Steven suggests that they should choose the barren stretch of land in the city and construct cluster buildings. James points out that the wetlands will provide them more area for construction. Riley advises that they should not worry about keeping large open spaces while planning building construction.

Explanation:

8 0
3 years ago
Draw a 3-D physical structure of an NMOS transistor. Label four terminals: body, drain, gate, and source. And also label silicon
Vanyuwa [196]

Answer:

Answer is attached.

Explanation:

A NMOS is a n-channel MOSFET or Metal Oxide

Semiconductor Field Effect Transistor. This type

of transistor might be an enhancement or

depletion type nMOS transistor designed using

layers of Metal-oxide, Silicon-oxide and Silicon

fabricated on a substrate.

4 0
3 years ago
Other questions:
  • A converging-diverging nozzle is designed to operate with an exit Mach number of 1.75 . The nozzle is supplied from an air reser
    15·1 answer
  • The distribution of actual weights of 8‑ounce wedges of cheddar cheese produced at a dairy is Normal, with mean 8.1 ounces and s
    5·1 answer
  • Hydrogen gas (density = 1.165 kg/m^3 ) is stored at 25°C in a permeable cylindrical container which has an outer diameter of 0.2
    11·1 answer
  • Air at 105 kPa and 37° C flows upward through a6-cm-diameter inclined duct at a rate of 65 L/s. The duct diameter is then reduce
    12·1 answer
  • Wave flow of an incompressible fluid into a solid surface follows a sinusoidal pattern. Flow is two-dimensional with the x-axis
    13·1 answer
  • Plateau Creek carries 5.0 m^3 /s of water with a selenium (Se) concentration of 0.0015 mg/L. A farmer withdraws water at a certa
    12·1 answer
  • Which of the following can effect LRO?
    12·1 answer
  • What is Batch manufacturing?
    13·1 answer
  • If you could drive one car for the rest of your life what would it be? Type in comments if you want to answer. Mine is either a
    9·1 answer
  • What are some advantages of making electronic components like transistors increasingly smaller? (40 POINTS) Pls help
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!