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
Rudiy27
3 years ago
13

If an if-else statement is true, it will include which kinds of results?

Computers and Technology
1 answer:
FinnZ [79.3K]3 years ago
8 0

Answer:

> It will run out the function under the if statement.

Explanation:

> As an if-else statement is saying if (something = something, etc) do (this this and this [let’s refer to this as 1]) Else do (this this and not this [let’s refer to this as 2]) Since it is true, it will do the original function (1).

> It is saying if this is true, then do this (1). If it is not true, then do this (2). Basically the else is there in case the if is not true, or equal to anything other than what’s intended.

> Since it is true however, it will do what the original function (1) is. So this is our correct answer. Once again, it is; “It will do the original function under the if statement”.

> I hope this answered your query, and any other questions you may have had on the subject. #LearningWithBrainly

You might be interested in
The direction of a ratchet is reversed by _______________________.
ankoles [38]

Answer:

You can reverse the direction of a ratchet by hitting with an equal or higher amount of force it came at you with.

Explanation:

6 0
2 years ago
What kind of bond is created by the attraction between atomic particles of opposite charge?
Veseljchak [2.6K]
That is called an lonic bond.

Ionic bonds are formed between elements with greater than 1.4 electronegative variance and to a lesser extent by first ionization energy variance, such as alkali metals and nonmetal halogens for example. The element of lesser electronegativity, the cation, donates an electron(s) from it's valance shell to the element with the greater electronegativity, the anion, which accepts the electron(s) unto it's valance shell. This bond is extremely strong and has a high melting point but because of waters polar nature this type of bond, usually, not always, disassociates in water.
5 0
3 years ago
Read 2 more answers
One problem with dynamic arrays is that once the array is created using the new operator the size cannot be changed. For example
riadik2000 [5.3K]

Answer:

Un problema con las matrices dinámicas es que una vez que se crea la matriz utilizando el nuevo operador, no se puede cambiar el tamaño. Por ejemplo, es posible que desee agregar o eliminar entradas de la matriz de manera similar al comportamiento de un vector. Este proyecto le pide que cree una clase llamada DynamicStringArray que incluye funciones miembro que le permiten emular el comportamiento de un vector de cadenas.

La clase debe tener:

Una variable miembro privada llamada dynamicArray que hace referencia a una matriz dinámica de tipo cadena.

Una variable de miembro privada llamada tamaño que contiene el número de entradas en la matriz.

Un constructor predeterminado que establece la matriz dinámica en NULL y establece el tamaño en 0.

Una función que devuelve el tamaño.

Una función llamada addEntry que toma una cadena como entrada. La función debe crear una nueva matriz dinámica un elemento más grande que dynamicArray, copiar todos los elementos de dynamicArray en la nueva matriz, agregar la nueva cadena al final de la nueva matriz, incrementar el tamaño, eliminar el antiguo dynamicArray y luego establecer dynamicArray en el nueva matriz.

Una función llamada deleteEntry que toma una cadena como entrada. La función debe buscar la cadena en dynamicArray. Si no lo encuentra, devuelva falso. Si lo encuentra, cree una nueva matriz dinámica con un elemento más pequeño que dynamicArray. Copie todos los elementos excepto la cadena de entrada en la nueva matriz, elimine DynamicArray, reduzca el tamaño y devuelva verdadero.

Una función llamada getEntry que toma un número entero como entrada y devuelve la cadena en ese índice en dynamicArray. Devuelve la cadena "" si el índice está fuera de los límites de dynamicArray.

Sobrecargue el operador [] para que pueda obtener y cambiar un elemento por un índice entero. Si el índice está fuera de los límites, devuelve una cadena "".

Un constructor de copia que hace una copia de la matriz dinámica del objeto de entrada.

Sobrecargue el operador de asignación para que la matriz dinámica se copie correctamente en el objeto de destino.

Un destructor que libera la memoria asignada a la matriz dinámica.

Cree un programa de prueba adecuado para evaluar su clase.

Debería nombrar el proyecto ASG10. Al comprimir la carpeta del proyecto, ASG10, incluya todos los archivos (.sln, .cpp, etc.) y subdirectorios (Debug, etc.).

************************************************

Copie su DynamicStringArray de la Tarea 10. Corrija el programa para que las 13 pruebas funcionen correctamente. Modifique la definición del operador sobrecargado [] y getEntry para que generen una excepción OutOfRange si se usa un índice que está fuera de rango. OutOfRange es una clase de excepción que define. La clase de excepción debe tener un miembro int privado y un miembro string privado, y un constructor público que tenga argumentos int y string. El valor del índice infractor junto con un mensaje deben almacenarse en el objeto de excepción. Tú eliges el mensaje para describir la situación. Modifique su programa de prueba y agregue pruebas que detecten la nueva clase de excepción.

Deberías nombrar

Explanation:

3 0
3 years ago
Michael is stuck due to an electric shock generated at the fridge. What should you do to save michael?.
NISA [10]

Pull him away from the fridge with a non-conducting material and begin cardiopulmonary resuscitation .

<h3>What is meant by electric shock?</h3>

When a human comes into contact with an electrical energy source, they experience an electric shock. A shock is produced when electrical energy passes through a section of the body. Exposure to electrical energy has the potential to cause fatalities or absolutely no injuries.

The tangible and tangible result of an electrical current entering the body is electrical shock. The shock could be anything from a dangerous discharge from a power line to an uncomfortable but safe jolt of static electricity after walking over a thick carpet on a dry day. trauma; related topics.

The complete question is : Michael is stuck due to an electric shock generated at the fridge. What should you do to save Michael?

A. push the fridge away with a non-conducting material and begin cardiopulmonary resuscitation

B. push the fridge away from him and begin cardiopulmonary resuscitation

C. pull him away from the fridge with a non-conducting material and begin cardiopulmonary resuscitation

D .pull him away from the fridge with your hands and begin cardiopulmonary resuscitation

To learn more about electric shock refer to:

brainly.com/question/28361869

#SPJ1

7 0
1 year ago
Charlie does not think he will be able to finish this project by the deadline at this point in the decision making process to so
ad-work [718]

Answer:

Talk to his Manager

Explanation:

In the decision making process of a project it is essential that communication between the team members and the manager of a project is adequate and also communication between the project sponsor and the project manager as well.

If Charlies does not think he will be able to finish the project by the deadline given to him by the project it is important he communicates in time with the manager and ask for a deadline extension while he tries his best to finish up the project on time

8 0
3 years ago
Other questions:
  • (GAME DESIGN)
    15·1 answer
  • You are configuring a wireless network with two wireless access points. Both access points connect to the same wired network. Yo
    10·2 answers
  • A cell has an unlimited number of conditions for Conditional Formatting.<br> A.true<br> B.false
    7·1 answer
  • Write a program to insert student grade and print the following
    8·1 answer
  • What are the pros and cons of using the Internet for researching career information?
    14·2 answers
  • Breaking code rules is only a problem once in a while. Group of answer choices True False
    12·1 answer
  • Every Java statement ends with: *<br><br> Period<br> Colon<br> Double quote<br> Semicolon
    11·2 answers
  • Any one know??please let me know
    15·2 answers
  • A file named loan.html, write an HTML document that looks similar to figure 9-7 in the textbook. Write four functions with these
    8·1 answer
  • Please help I really don't understand much about web technology.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!