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
You push a 10 n object 10 m how much work was done on the object​
dezoksy [38]

Answer: the answer is

Work= Force * Distance

Work= 10N * 10m

Work= 100J

Explanation:

5 0
3 years ago
Read 2 more answers
What is the best engineering job to do? Why?
allochka39001 [22]

Answer:

Any engineering job would be good YOU should be the one choosing which job.

Explanation:

Engineering is a great outlet for the imagination, and the perfect field for independent thinkers.

7 0
2 years ago
Read 2 more answers
In fuel oil piping systems, all exterior above-grade fill piping shall be __________ when tanks are abandoned or removed.
castortr0y [4]

Answer:

Removed

Hope this Helps!

6 0
3 years ago
Please help me with this question​
kap26 [50]

Answer:

The current through each lamp is 0.273 Amperes

Power dissipated in each lamp is 0.082W

Explanation:

Battery v = 1.5 V

Each lamp has resistance, r = 1.1 Ohms

The 5 lamps in series will therefore have total resistance, R = 5 * 1.1 = 5.5 Ohms

The current through each lamp, I = v/R = 1.5 / 5.5 = 0.273 Amperes

Power dissipated in each lamp = I² * r = 0.273² * 1.1 = 0.082W

3 0
3 years ago
Impedance is defined as the total opposition to current in an AC circuit. Question 17 options: True False
ArbitrLikvidat [17]

Answer: True

Explanation:

The total opposition to current flow in an AC circuit is known as Impedance.

8 0
2 years ago
Other questions:
  • A person puts a few apples into the freezer at -15oC to cool them quickly for guests who are about to arrive. Initially, the app
    15·1 answer
  • A convenient and cost-effective way to store biogas is to use light-weight, rigid gas containers. The pressure and temperature o
    7·1 answer
  • Webster is giving a speech on the benefits of moving toward the use of windmill energy instead of having to rely on fossil fuels
    7·1 answer
  • Create a program named IntegerFacts whose Main() method declares an array of 10 integers.Call a method named FillArray to intera
    12·1 answer
  • Table 1(a) shows the marks obtained by 40 students in an examination
    11·1 answer
  • The ground temperature a few meters below the surface is fairly constant throughout the year and is near the average value of th
    9·1 answer
  • Sort the following alphabets using MergeSort and give required steps. [2 Marks]
    9·1 answer
  • Also discuss how bandwidth is affected by increasing the number of signal elements.
    5·1 answer
  • 10. What type of sealant would be best for sealing<br> between machined surfaces of rigid castings?
    10·1 answer
  • In __________, the air bags system checks itself for problems each time the ignition is turned on
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!