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
nikdorinn [45]
3 years ago
5

Using a conditional expression, write a statement that increments numUsers if updateDirection is 1, otherwise decrements numUser

s. Ex: if numUsers is 8 and updateDirection is 1, numUsers becomes 9; if updateDirection is 0, numUsers becomes 7.
Mathematics
1 answer:
bija089 [108]3 years ago
4 0

if(updateDirection==1){

numUser ++;

else

numUser--;

}

if (numUser==8 && updateDirection==1){

numUser= 9;

}

if(updateDirection==0){

userUser=7;

}

You might be interested in
If two boxes of cereal and a jug of milk cost $8.50, and three boxes of cereal and two jugs of milk cost $14.00, how much does a
Citrus2011 [14]

Answer:

$3

Step-by-step explanation:

Let c represent the cost of a box of cereal and let m represent the cost of a jug of milk.

Create a system of equations:

2c + m = 8.5

3c + 2m = 14

Solve by elimination by multiplying the top equation by -2:

-4c - 2m = -17

3c + 2m = 14

Add them together and solve for c:

-c = -3

c = 3

So, a box of cereal costs $3

3 0
3 years ago
a triangle has a perimeter of 10x+2 . two sides have lengths of 5x and 2x+9 what is the length of the 3rd side
stiks02 [169]
Since all the sides add up to 10x+2, that means that 10x-2-<side1>-<side2>=<side3>. Plugging it in, we have 10x-2-5x-(2x+9)=side3, and 5x-2-(2x+9)=side3, then expanding it to 5x-2-2x-9=3x-11=side3
8 0
4 years ago
PLEASE HELP!!!! Choose the best graph that represents the linear equation: 4x + y = 0 Graph A On a coordinate plane, a line goes
arlik [135]

Answer:

see graph...

B On a coordinate plane, a line goes through (0, 0) and (1, negative 4).

Step-by-step explanation:

4 0
3 years ago
Factorize: 3x^3-13x^2+16​
il63 [147K]
(x+1)(x−4)(3x−4). Mark brainliest :))
3 0
3 years ago
I really need help with this question, it's a homework question. Lots of points NO LINKS! 20pts (with picture)
Mnenie [13.5K]

Answer:

90

Step-by-step explanation:

i think it is 90

3 0
3 years ago
Read 2 more answers
Other questions:
  • Can someone help me with this question, again?
    6·1 answer
  • Eder needs 6 cookies and 2 brownies for every 4 plates he makes for a bake sale.
    14·1 answer
  • Divide 9y power 2 by 3<br><br>divide (8x power 2 +4x ) by 2x​
    13·1 answer
  • Which one doesn't belong?<br> Graph
    9·1 answer
  • X^2-18x+67=0 Solve the quadratic equation by completing the square.
    8·1 answer
  • 5 miles= km. how many km in 250 miles
    8·1 answer
  • You have inherited a large collection of audio compact discs and decide to purchase a HiFi system to play them. At the retailer
    5·1 answer
  • Manu picked 10 apples, and then Sten gave him 10 more. Manu gave 5 of the apples to Klara. How many
    7·2 answers
  • Help me i am having trouble
    12·1 answer
  • Write an addition sentence that helps you solve 51 - 9
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!