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
Simplify the expression 5-2y + (-8y) +6.8 <br>​
choli [55]

answer:

<u>5</u><u>-</u><u>2</u><u>y</u><u> </u><u>+</u><u> </u><u>(</u><u>-8y</u><u>)</u><u> </u><u>+</u><u> </u><u>6</u><u>.</u><u>8</u>

simplified:

11.8-10y

6 0
3 years ago
Read 2 more answers
each week, mr. jones goes to the grocery store. mr.jones estimates that he will spend $120 when he goes to the grocery store thi
zubka84 [21]
Mr. Jones estimate is wrong then.  It is $26 more than he actually bought.
5 0
3 years ago
Read 2 more answers
The owner of a baseball stadium found that he sells an average of 586 tickets to each game when he charges an average of $59 per
mina [271]

Given that the owner of a baseball stadium found that he sells an average of 586 tickets to each game when he charges an average of $59 per ticket.

So number of tickets = 586

Profit on 1 ticket = $59


Say price is increased once then new cost of ticket = 59+6

Say price is increased twice then new cost of ticket = 59+6*2

Say price is increased thrice then new cost of ticket = 59+6*3

In the same pattern

Say price is increased x-times then new cost of ticket = 59+6*x


In same pattern number of tickets sold will decrease by multiple of 4

Hence number of tickets sold  when cost is increased x-times = 586-4*x


Then profit when cost is increased x-times = (586-4*x) (59+6*x)


Let P(x) represents profit when price is increased x-times then the required function will be:

P(x)= (586-4x)(59+6x)


Hence final answer will be choice matching with P(x)= (586-4x)(59+6x)


5 0
4 years ago
Noj is 5 years older than jacob. the product of their age is 84. how old is noj
My name is Ann [436]
U have to subtract 84-5=79 so noj is 79 years old.
3 0
4 years ago
Which word in Maths Topic Percentage Increase and Decrease spell R_d_c_
n200080 [17]

Answer:

Step-by-step explanation:

8 0
3 years ago
Other questions:
  • 1. write an algebraic expression for the phrase three times the sum of B and F. ​
    11·1 answer
  • Convert 3,250 mL to L.<br><br> 3.25 L<br> 0.325 L<br> 3,250,000 L<br> 325,000 L
    5·1 answer
  • Classify each scale factor as a contraction or an expansion. Drag and drop the choices into the boxes to complete the table.
    13·2 answers
  • 875,932,461,160 hundred-millions place of this number
    6·1 answer
  • Pls help will mark brainliest to first answer
    9·1 answer
  • What is -4-2? Help please
    14·2 answers
  • Can you use a square to tile a floor?
    12·2 answers
  • Greg runs 3 miles in 28 minutes. At the same rate, how many miles would he run in 42 minutes?
    5·2 answers
  • 4 × (28 ÷ 7)2 = <br> HURRYYYYY
    5·1 answer
  • If m || n, m&lt;1 = (5x + 15), and m2 = (8x - 21)', what is m&lt;3?<br>​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!