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
A plane flew 3,100 kilometers at a speed of 775 kilometers per hour how many hours was the flight?
Tom [10]
3100 divided by 775 equal 4 hours
4 0
3 years ago
jamie can ride her bike 3 times as fast as Michelle can jog. if jamie rides her bike at a rate of 12 miles per hour, how fast ca
erastova [34]

Answer: 4 miles per hour

Step-by-step explanation: Just divide 12 by 3 .-.

3 0
3 years ago
Read 2 more answers
Where are the asymptotes of f(x) = tan(4x − π) from x = 0 to x = π/ 2 ?
Aneli [31]
That answer was (B)................
3 0
3 years ago
The function f(x)=3x+12x+11 can be written in vertex form as?
solmaris [256]
 y = -3(x<span> - 2)^2 + 1 </span>x<span>-coordinate of vertex: </span>x<span> = -b/(2a) = -12/-6 = 2 y-coordintae of vertex: y(2) = -12 + 24 - 11 = 1 </span>Vertex form: y = -3(x<span> - 2)^2 + 1 Check. Develop y to get back to standard form: y = -3(</span>x^2 - 4x + 4) + 1 = -3x<span>^2 + </span>12x<span> - </span>11<span>. </span>
7 0
4 years ago
If 2^2x = 2^3, what is the value of x?
Orlov [11]

Answer:

x=2

Step-by-step explanation:

3 0
3 years ago
Other questions:
  • A bag of rice has a mass of 3.18 pounds. Find it kilograms
    5·1 answer
  • How many solutions exist for the given equation?<br><br> 1/2(x + 12) = 4x - 1
    8·1 answer
  • which function has only one x-intercept at (−6, 0)? f(x) = x(x − 6) f(x) = (x − 6)(x − 6) f(x) = (x 6)(x − 6) f(x) = (x 6)(x 6)
    12·2 answers
  • A number decreased by 10 is greater than -5
    10·2 answers
  • Help me with this problem
    8·2 answers
  • A rental car agency charges $ 220.00 per week plus $ 0.25 per mile to rent a car. How many miles can you travel in one week for
    14·1 answer
  • Help me pls, i dont understand​
    8·2 answers
  • Which system type is a linear system with no solution?
    10·2 answers
  • Which expression is equivalent to 32 + 16?
    6·1 answer
  • Yom-ally has $10,000 property damage liability insurance and a $1,000 deductible on her collision insurance. She drove over a $6
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!