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
Oksana_A [137]
3 years ago
11

Write a statement that increments numUsers if updateDirection is 1, otherwise decrements numUsers. Ex: if numUsers is 8 and upda

teDirection is 1, numUsers becomes 9; if updateDirection is 0, numUsers becomes 7.Hint: Start with "numUsers
Computers and Technology
1 answer:
Lady_Fox [76]3 years ago
4 0

Answer:

Following are the statement is given below

if(updateDirection ==1) // check condition

{

++numUsers; // increments the value

}

else

{

--numUsers; // decrement the value

}

Explanation:

Following are the description of statement

  • Check the condition in the if block .If the "updateDirection" variable is 1 then then control moves to the if block otherwise control moves to the else block statement.
  • In the if  block the statement is "++numUsers" it means it increment the value by 1 .
  • In the else block the statement is "--numUsers" it means it decrement  the value by 1 .

You might be interested in
Escribe un ejemplo de:• Software de aplicación. • Software de diagnóstico. • Software de sistema. ayudenme plis, me toca entrega
Afina-wow [57]

Answer:

1. Software de aplicación: Microsoft Word.

2. Software de diagnóstico: Speccy.

3. Software de sistema: Windows operating system (OS).

Explanation:

Un software puede definirse como un conjunto de instrucciones ejecutables (códigos) o una colección de datos que se utiliza normalmente para instruir a una computadora sobre cómo realizar una tarea específica y resolver un problema en particular.

Básicamente, los softwares se clasifican en tres (3) categorías principales y estas son;

1. <u>Software de aplicación</u>: es un software de usuario final que normalmente está diseñado para realizar tareas y funciones específicas.

Algunos ejemplos de software de aplicación son Microsoft PowerPoint, Notepad, Windows Media player, Firefox, Go-ogle Chrome, Adobe Photoshop, AutoCAD, etc.

2. <u>Software de diagnóstico</u>: estos son programas de software que se utilizan para solucionar problemas y posiblemente reparar un sistema informático.

Algunos ejemplos de software de diagnóstico son Speccy, Windows Sysinternals Suite, System Explorer, hddscan, HWiNFO, SIW (System Information for Windows), CPU-Z, HD Tune, etc.

3. <u>Software de sistema</u>: es un software que normalmente está diseñado para ejecutar el hardware de la computadora y todas las demás aplicaciones de software.

Algunos ejemplos de software del sistema son Linux, Windows OS, Mac OS, WinZip, McAfee antivirus, Norton antivirus, Avast antivirus, Piriform CCleaner, Ubuntu, etc.

8 0
3 years ago
Dots (or periods) in a Java statement are used to separate the names of the components that make up the statement.
julia-pushkina [17]

Answer:

B) False

Explanation:

The java programming language uses Dots (periods) as an operator (The dot operator). It is used when referring to the variables or methods of a class. The syntax is ClassName.variableName or ClassName.methodName. We are very familiar with the System.out (java.lang.System.out) which refers to the variable out contained in the class System. Another example is input.nextInt( ) In this case the nextInt ( ) method is being called.

8 0
4 years ago
A student builds a model of her bedroom. The scale is 1:25. In the scale model, the students bed is 3 inches long. How long is t
Fittoniya [83]

Answer:

The student’s actual bed is 75 inches long

Explanation:

Here in this question, we want to find out the length of the student’s actual bed.

The ratio of the model to the real is 1:25

Let the actual length of the bed be x inches

Thus;

1/25 = 3/x

By cross multiplying

1 * x = 3 * 25

x = 75 inches

5 0
3 years ago
All customers are on a Customer Community License. Universal Containers needs to grant a subset of their customers, known as aff
nadya68 [22]

Answer:

Feed tracking and use customs objects record fields and post them as an update. Feed tracking detects that user follows record and update their view of What follow.

Explanation:

Feed tracking is available in Sales Group, Professional, Enterprise, and Developer.

Custom Object is a set of records that allow you to store additional data in an account record and link the data to contact.

Create a custom object in Salesforce

  • Login in sandbox
  • click the new Custom Object. select create custom Object
  • Enter Book for label
  • Enter Book for plural label
  • Click Save

// Created Custom Object and Custom Filed

  • Click new Select Number for datatype and click Next
  • Enter in the filed label
  • Enter 2 in decimal places
  • Click Next for filed-level security
  • Click Save

3 0
4 years ago
Write a Temperature class that represents temperatures in degrees in both Celsius and Fahrenheit. Use a floating-point number fo
mrs_skeptik [129]

The formula used to convert the Fehrenheit to degree Celcius is given as

F = 1.8C + 32

<h3>What is temperature?</h3>

The term used for the measurement of the degree of hotness or coldness of any object is called as temperature.

This represents the temperature of F degrees Fahrenheit converted to degrees Celsius.

Remember that in order to change temperature we need to use the following formula:  from Fahrenheit to Celsius: first, subtract 32, then multiply by 100/180

To know more about temperature follow

brainly.com/question/24746268

#SPJ1

7 0
2 years ago
Other questions:
  • Which of the following queries can have a Fully Meets result? Select all that apply. True False [adobe website], English (US) Tr
    7·1 answer
  • Kayle is building a web form. He has included space where users can input their phone numbers and email addresses. However, he w
    15·1 answer
  • True or false: a game design document is like a diary for game developers
    13·2 answers
  • In an IPv.4 addressing scheme the router works at layer 3 on which addressing layer?
    14·1 answer
  • Pop3 allows users to fetch and download e-mails from a remote mailbox. does this mean that the internal format of the mailboxes
    14·1 answer
  • A computer essentially takes input, processes it, and produces output. Which person developed a machine in the mid-1880s that ac
    6·1 answer
  • Programs are normally stored in ________ and loaded into main memory as needed. the input device the output device secondary sto
    15·1 answer
  • How are computers 35 years ago and how are they presently and how are they going to be in the next 35 years
    9·1 answer
  • Consider a file/directory with the following info:
    14·1 answer
  • When was the first computer made?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!