In a program, write a method that accepts two arguments: an array of integers

and a number n. The method should print all of the numbers in the array

that are greater than the number n (in the order that they appear in the

array, each on their own line).

In the same file, create a main method and call your function using the following

data sets:

The array {1, 5, 10, 2, 4, -3, 6} and the number 3.

The array {10, 12, 15, 24} and the number 12.

My code:

public class LargerThanN

{

public static void print(int[] array,int n)

{

for(int i=0; i
{

if (array[i]>n)

System.out.println(array[i]);

}

System.out.println();

}


public static void main(String[] args)

{

int[] array1 = {1,5,10,2,4,-3,6};

int num1=3;

print(array1,num1);


int[] array2 = {10, 12, 15, 24};

int num2 = 12;

print(array2, num2);

}

}

Answers

Answer 1

The method that accepts two arguments: an array of integers is given:

The Program

public class LargerThanN {

   public static void print(int[] array, int n) {

      for (int num : array) {

           if (num > n)

               System.out.println(num);

       }

       System.out.println();

   }

   public static void main(String[] args) {

       int[] array1 = {1, 5, 10, 2, 4, -3, 6};

       int num1 = 3;

       print(array1, num1);

       int[] array2 = {10, 12, 15, 24};

       int num2 = 12;

       print(array2, num2);

   }

}

This code involves the creation of a class called LargerThanN that includes a print function which requires an array of integers and a numerical value, represented by n, to be supplied as parameters. The array is systematically examined and any number exceeding the value of n is displayed. The print method is demonstrated by creating two sets of data in the main method and then passing them through.

Read more about programs here:

https://brainly.com/question/26134656

#SPJ4


Related Questions

A sum of money is shared between 2 friends in the ratio 2 : 3. If the larger

share is $450. What is the total sum shared?

Answers

300! Is the answer for this problem. 450 is the bigger sum, and that’s the 3 part of the ratio. So when we divide 450 by 3 it gives us 150. 150 is what one point on the ratio stands for. We’re looking for what 2 points on the ratio is, so 150*2 which gives us 300 … hope this helps

What is a primary role of the physical layer in transmitting data on the network?.

Answers

Create the media signals that correspond to the bits in each frame. Explanation: The network media can be traversed by the bits that make up a frame thanks to the OSI physical layer.

What is the purpose of the OSI physical?Create the media signals that correspond to the bits in each frame. Explanation: The network media can be traversed by the bits that make up a frame thanks to the OSI physical layer.The copper wires, optical fiber, and wireless network devices are connected by the OSI Physical layer, which is responsible for encoding binary digits that represent Data Link layer frames into signals and transmitting and receiving those signals.The main goal of the physical layer is to specify the functional requirements for connections between end systems and the data-carrying electrical, optical, and radio signals. Other layers' responsibilities include media access, path selection, and dependability.

To learn more about :  OSI Physical layer

Ref :  https://brainly.com/question/26500666

#SPJ4

How can you ensure that messages from a trusted email address will not be identified as spam or junk email?
Add the message to the Safe Senders list.
Add the message to the Safe Recipients list.
O Right-click the message, and select Move to the Saved folder.
O Right-click the message, and select Move to the Archive folder.

Answers

Answer: A, Add the Message to the safe senders list.

Explanation: I just did the assignment.

Answer:

Answer shown in image below

Or

*Add message to the Safe Senders List*

Explanation:

Edge 2021

Plz click the Thanks button!

<Jayla>

How can you ensure that messages from a trusted email address will not be identified as spam or junk

Who do you like more?

Lolbit

-or-

Mangle

Who do you like more?Lolbit-or-Mangle

Answers

Answer: lolbit

Explanation: she is my glitchy idol along with the shadows and Mr. Afton's cult.

Who do you like more?Lolbit-or-Mangle

Answer:

Mangle

Explanation: just because.

Creating a marketing database involves all of the following steps except ________. Group of answer choices enhancing consumer purchase information by overlaying it with demographic and psychographic information transferring raw sales information to a microcomputer analyzing information in terms of a customer's activity over the life of the business relationship none of the above

Answers

Creating a marketing database involves all of the following steps except enhancing consumer purchase information by overlaying it with demographic and psychographic information.

The process of creating a marketing database typically involves several steps. These steps include transferring raw sales information to a microcomputer, analyzing information in terms of a customer's activity over the life of the business relationship, and enhancing consumer purchase information by overlaying it with demographic and psychographic information. These steps are crucial in building a comprehensive and effective marketing database.

However, the statement specifies that one step is not part of the process. That step is enhancing consumer purchase information by overlaying it with demographic and psychographic information. This process is commonly known as data enrichment, where additional data such as customer demographics, interests, or behavior is appended to the existing customer purchase information. Data enrichment helps businesses gain a deeper understanding of their customers, segment their audience, and personalize marketing efforts.

While the other steps mentioned are integral to creating a marketing database, the step of enhancing consumer purchase information with demographic and psychographic data is not explicitly mentioned as part of the process. Nonetheless, it is worth noting that data enrichment is often a valuable step in building a comprehensive marketing database and can significantly enhance the effectiveness of marketing campaigns.

Learn more about  database here: brainly.com/question/6447559

#SPJ11

Which work value involves knowing that your position will be around for a while?

Answers

A work value which involves an employee knowing that his or her position will be around for a while is: receiving recognition.

What is a work value?

A work value can be defined as a series of principles or beliefs that are related to an employee's career or place of work (business firm).

This ultimately implies that, a work value connotes what an employee believe matters with respect to his or her career.

In conclusion, receiving recognition is a work value which involves an employee knowing that his or her position will be around for a while.

Read more on work value here: https://brainly.com/question/3207845

#SPJ1

Type the correct answer in the box spell all words correctly.
karl has designed an interactive stories website for kids. he has implemented an alphabetical format for browsing through the stories. which
structure will he use for easy navigation?
kart implements a
structure for users to advance through the chapters.
reset
nexus

Answers

Kart should implement a main navigation structure for users to advance through the chapters.

The types of navigation.

In Computer technology, there are three main types of navigation used on websites and these include the following:

Structural navigationUtility navigationAssociative navigation

In this scenario, Kart should implement a main navigation structure for users to advance through the chapters on this interactive stories website for kids.

Read more on website here: https://brainly.com/question/26324021

#SPJ1

seven characteristics of non-impact printers​

Answers

Answer:

*It prints faster than the impact printer and takes less time.

*They do not physically touch; you need the help of ink or other substances to print and without physically feel to print.

*Good quality printable material printing.

*They are quieter than impact printers while printing.

*Prints a page in minimal time.

*It also prints a graphic image precisely as it is.

*They need less maintenance or repairs than impact printers.

Explanation:

sana maka tulong

A device which lets you interact with the computer


Answers

Answer:

Input, output, storage.

Explanation:

Input is used to interact with, or send data to the computer (mouse, keyboards, etc.). Output provides output to the user from the computer (monitors, printers, etc.). And storage which stores data processed by the computer (hard drives, flash drives, etc.).

Answer:

The answer are;

1 . mouse

2 . keyboard

ou successfully executed the following commands in your Postgres database: CREATE USER researcher1 IN ROLE researcher; GRANT SELECT ON DiseaseResearch TO researcher; GRANT SELECT ON Voter TO PUBLIC; Indicate whether the following statement is true or false: The user researcherl can join tables Disease Research and Voter. Format your answer in a query as follows: SELECT answer where answer is true or false, e.g., SELECT true.

Answers

The statement is true, and the user "researcher1" can indeed join the tables "DiseaseResearch" and "Voter" in queries.

To determine whether the user "researcher1" can join tables "DiseaseResearch" and "Voter" based on the given commands, we need to consider the privileges granted to the user.

The commands executed in the Postgres database are as follows:

```sql

CREATE USER researcher1 IN ROLE researcher;

GRANT SELECT ON DiseaseResearch TO researcher;

GRANT SELECT ON Voter TO PUBLIC;

```

The first command creates a new user called "researcher1" and assigns the "researcher" role to that user.

The second command grants the "SELECT" privilege on the table "DiseaseResearch" to the "researcher" role. This means that any user belonging to the "researcher" role, including "researcher1," will have the ability to select data from the "DiseaseResearch" table.

The third command grants the "SELECT" privilege on the table "Voter" to the "PUBLIC" role. The "PUBLIC" role includes all users in the database. Therefore, both the "researcher" role and "researcher1" user will have the ability to select data from the "Voter" table.

Based on these permissions, the statement "The user researcher1 can join tables DiseaseResearch and Voter" is true. The user "researcher1" belongs to the "researcher" role, which has the "SELECT" privilege on both the "DiseaseResearch" and "Voter" tables. Hence, the user can join these tables in queries to retrieve data.

Learn more about tables:

https://brainly.com/question/12151322

#SPJ11

Which one of these is an example of unnecessary debt?
A. You buy a perfectly good used car instead of an expensive new car
B. You buy your groceries on Friday instead of coupon Monday.
C. You charge clothes you don't really need on a high-interest store card.
D. You save up all year to take a great surfing vacation.

Answers

c. you charge clothes you don’t really need on a high-interest store card

hope this helps :)

An example of unnecessary debt is when you change your clothes and don't really need on a high-interest score. Thus option C is correct.

What is unnecessary debt?

An unnecessary debt can be caused by a variety of issues such as expensive life events, having children, or moving to a new house. It may also be due to poor money management. The debt is due to those things that are not needed and hence are unnecessary.

Find out more information about unnecessary debt.

brainly.com/question/3566270

why was freshdesk a good candidate for remote computing services on the cloud? what was freshdesk’s experience working with aws? what made amazon redshift and opsworks good fits for freshdesk?

Answers

Freshdesk is a good candidate due to the fact that  it  is one that has experienced that has gotten rapid growth in just four years of its existence.

What was Freshdesk's experience working with AWS?

Freshdesk's experience working with AWS is known to be one that has been reportedly to be very positive.

Note that the company's IT Operations director, who was said to be called Krishnenjit Roy was one that stated he wanted to work with a company that can help in regards to reducing Freshdesk's cost as well as optimize efficiency.

Therefore, Freshdesk is a good candidate due to the fact that  it  is one that has experienced that has gotten rapid growth in just four years of its existence.

Learn more about remote computing from

https://brainly.com/question/14099873

#SPJ1

100 POINTS PLEASE HELP
Create and initialize a 5 x 5 array as shown below.
0 2 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 2 0 0 2

First, write a printArray() function that prints out the array. Use a single parameter in the definition of the function, and pass the array you created above as the parameter. Call the function so it prints the original array.

Then write a flipHorizontal() function that flips the contents of the array horizontally and prints the result. This means that the values in each row should be reversed (look at the second array in the sample run of the program for clarity). Again, this function should pass the original array as the parameter. Within your flipHorizontal() function, call the printArray() function to print the new array that has been horizontally flipped.

Reset the array back to the original 5 x 5 array we started with.

Then write a flipVertical() function that flips the contents of the array vertically and prints the result. This means that the values in each column should be reversed (look at the third array in the sample run of the program for clarity). Again, this function should pass the original array as the parameter. Within your flipVertical() function, call the printArray() function to print the new array that has been vertically flipped.

The sample run below shows how your code should print the original array, followed by the horizontally-flipped array, followed by the vertically-flipped array. Notice that the output below includes blank lines between each of the three arrays - yours should do the same.

Code should be able to do this

0 2 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 2 0 0 2


0 0 0 2 0
0 0 0 2 0
0 0 2 2 0
0 2 0 2 0
2 0 0 2 0


0 2 0 0 2
0 2 0 2 0
0 2 2 0 0
0 2 0 0 0
0 2 0 0 0

Answers

Answer:

hope this helped ,do consider giving brainliest

Explanation:

import numpy as np

#PrintArray Function

def printArray(array):

for i in range(len(array)):

for j in range(len(array[i])):

print(array[i][j], end= " ")

print()

#Flip horizontal function

def flipHorizontal(array):

#reversing the order of arrays

array2 = np.fliplr(array).copy() printArray(array2)

#Flip Vertical function

def flipVertical(array):

#Preserving the order of array and reversing each array.

array3 = np.flipud(array).copy() printArray(array3)

#Main() function def main():

array = [[0,2,0,0,0],[0,2,0,0,0],[0,2,2,0,0],[0,2,0,2,0],[0,2,0,0,2]]

print("The array: \n")

printArray(array)

print("\nFlipped horizontally: \n") flipHorizontal(array)

print("\nFlipped vertically: \n") flipVertical(array)

if __name__=="__main__":

main()Explanation:

Answer:

Answer:

hope this helped ,do consider giving brainliest

Explanation:

import numpy as np

#PrintArray Function

def printArray(array):

for i in range(len(array)):

for j in range(len(array[i])):

print(array[i][j], end= " ")

print()

#Flip horizontal function

def flipHorizontal(array):

#reversing the order of arrays

array2 = np.fliplr(array).copy() printArray(array2)

#Flip Vertical function

def flipVertical(array):

#Preserving the order of array and reversing each array.

array3 = np.flipud(array).copy() printArray(array3)

#Main() function def main():

array = [[0,2,0,0,0],[0,2,0,0,0],[0,2,2,0,0],[0,2,0,2,0],[0,2,0,0,2]]

print("The array: \n")

printArray(array)

print("\nFlipped horizontally: \n") flipHorizontal(array)

print("\nFlipped vertically: \n") flipVertical(array)

if __name__=="__main__":

main()Explanation:

Explanation:

Write a Java program to calculate the amount of candy each child at a party gets. You specify the number of children and the total amount of candy, then compute how many pieces each child gets, and how many are left over (for the parents to fight over!).

Answers

Answer:

import java.util.Scanner;

public class candy {

   public static void main(String[] args){

       Scanner sc = new Scanner(System.in);

       System.out.println("Type in number of children: ");

       //gets the number of children

       int numberOfChildren = Integer.parseInt(sc.nextLine());

       System.out.println("Type in number of candy: ");

       //gets number of candy

       int numberOfCandy = Integer.parseInt(sc.nextLine());

       //checks there will be any leftover candy

       int leftover = numberOfCandy%numberOfChildren;

       System.out.println("Each children will get "+(numberOfCandy-leftover)/numberOfChildren+" candies.");

       System.out.println("There will be "+leftover+" leftover candies.");

   }

}

Which form of architectural drawing shows a building as it will appear from the front, rear, and sides, depending on its design and complexity? The view of a construction plan shows a building as it will appear from the front, rear, and sides, depending on its design and complexity.

Answers

And pictures or graphs of so I can’t answer sorry but try looking it up

Answer:

elevation

Explanation:

i'm not sure, but an elevated view could show the given aspects needed to appear of the building..

what is invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]

Answers

The error message "invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]" means that there is an attempt to convert a single character to a string.

The expression expects a string, but only a single character is provided.

So, you can add another character to the string or explicitly convert the character to a string by concatenating it with an empty string (""), like this:

char myChar = 'a';string myString = "" + myChar;Or you can use string literals instead of char literals, like this:const char *myString = "a";Note that in C++, strings should be declared using double quotes (") and not single quotes (').

Learn more about error messages at

https://brainly.com/question/33044851

#SPJ11

What is output?
C = 1
sum 0
while (c < 10):
c = c + 3
sum
sum + C
print (sum)

Answers

Answer:The French and Dutch settlements differed from the Spanish colonies in that they were created mainly to trade and develop industries, while the Spanish were primarily concerned with gold and silver excavation, and then later with sugar exportation.

Explanation:The French and Dutch settlements differed from the Spanish colonies in that they were created mainly to trade and develop industries, while the Spanish were primarily concerned with gold and silver excavation, and then later with sugar exportation.

The latent image in a flat-panel detector is formed by which of the following?A. Trapped electronsB. Charged capacitorsC. Electrical resistanceD. Detector elements

Answers

The latent image in a flat-panel detector is formed by a) Trapped electrons.

In a flat-panel detector, the latent image is formed by a. trapped electrons. When the detector is exposed to radiation, it interacts with the detector material, creating electron-hole pairs. These electrons are trapped in the detector's pixels, and this pattern of trapped electrons represents the latent image. The detector's readout system then processes this information to create a visible image. There are two main types of digital flat-panel x-ray detectors that are based on: - Direct detection that incorporate a photoconductor to produce electrical charges on detection of an x-ray, - Indirect detection that incorporate a phosphor to produce visible photons on detection of an x-ray.

There are two kinds of radiation: non-ionizing radiation and ionizing radiation. Non-ionizing radiation has enough energy to move atoms in a molecule around or cause them to vibrate, but not enough to remove electrons from atoms. Examples of this kind of radiation are radio waves, visible light and microwaves.

Learn more about Radiation: https://brainly.com/question/13934832

#SPJ11

coding is..? i need help pls reply quick

Answers

Answer: Code is made up of a series of steps that instruct computers on how to perform a specific task.

Explanation: Computer software, games, apps, and websites can all be created using coding. A programmer is a person who is responsible for writing the programs that drive everything we do on a computer.

TRUE/FALSE. Persons who have been given access to an installation can be counted on to be of no threat.

Answers

False. Persons who have been given access to an installation cannot be counted on to be of no threat.

Even though persons with authorized access are most likely not a danger, they may become a threat, intentionally or unintentionally. Additionally, the credentials and access controls provided may be compromised, allowing an attacker to access the installation. Physical and logical controls, including access control policies and procedures, must be implemented to minimize the potential risk from authorized individuals. Physical controls include the use of identification badges, locks, cameras, and fences, while logical controls include access control lists and intrusion detection and prevention systems.

Policy and procedures, such as background checks and training on access rights and responsibilities, are essential components of the management and oversight of authorized personnel.

Therefore, it is not wise to rely entirely on the good intentions of persons with authorized access, and it is critical to implement appropriate access controls and security measures to minimize potential threats. In conclusion, it is false to assume that persons with authorized access to an installation cannot pose a threat.

To know more about the installation, click here;

https://brainly.com/question/28452224

#SPJ11

The property that allows a metal to be drawn into wires is called...
A. Hardness
B. Malleability
C. Ductility
D. Elasticity

Answers

Answer:

Malleability and ductility

Explanation:

Metals are also easily distinguished from non-metals and other materials in their ductility (ability to be drawn into a wire) and malleability (the ability to be beaten into a. sheet).

Did you need help on this with an assignment? Hope this helps!

relation between different temperature scale ​

Answers

The realtor. Between different temperature scale is

when demonstrating 2022 versa’s maneuverability, what available systems should you point out when backing up?

Answers

When demonstrating 2022 Versa's maneuverability, what you should you point out while driving in a parking lot is the excellent rearward visibility that is given or shown by the RearView Monitor.

2022 Nissan Versa is a new model by Nissan. They are known to have different technology and safety features. Its includes  automatic emergency braking with pedestrian detection, remote keyless entry etc.

This vehicle comes with 2 functions such as a 5-speed manual transmission or an Xtronic Continuously Variable Transmission. With this one can quickly adjusts to the best gear ratio for a easyy acceleration and efficiency.

Learn more about 2022 Versa's from

https://brainly.com/question/25980600

spect is a: a.system to replace traditional films with digital equivalents b.technique using a radioactive substance and a computer to create three-dimensional images c.radiopharmaceutical used in a pet scan d.protocol for transmission between imaging devices

Answers

Spect is a:

b. Technique using a radioactive substance and a computer to create three-dimensional images

What is SPECT?

The nuclear medicine tomographic imaging technique known as single-photon emission computed tomography (SPECT) uses gamma rays. It is extremely comparable to scintigraphy, or standard nuclear medicine planar imaging utilizing a gamma camera, but is able to deliver genuine 3D data. Although generally shown as cross-sectional slices across the patient, this information is flexible and can be displayed or handled anyway is necessary.

The procedure calls for administering a radionuclide—a gamma-emitting radioisotope—to the patient, typically via injection into the bloodstream. Sometimes the radioisotope is a straightforward soluble dissolved ion, such an isotope of gallium (III). The majority of the time, however, a radioligand is created by joining a marker radioisotope to a particular ligand, and this radioligand has the ability to bind to particular tissues. This union enables the transport and binding of the radiopharmaceutical and ligand to a site of interest in the body, where a gamma camera can detect the presence of ligand.

To learn more about spect visit:

https://brainly.com/question/11366476

#SPJ4

Spect is a Technique using a radioactive substance and a computer to create three-dimensional images.(b)

What is SPECT?

Gamma rays are used in the nuclear medicine tomographic imaging procedure known as single-photon emission computed tomography (SPECT). Even though it uses a gamma camera, it is very similar to scintigraphy or conventional nuclear medicine planar imaging, yet it can produce actual 3D data. Although this information is often shown as cross-sectional slices across the patient, it is flexible and may be displayed or handled in any way that is required.

How do Spect works?

The process is injecting a radionuclide—a gamma-emitting radioisotope—typically into the patient's circulation. Sometimes the radioisotope is a simple dissolved ion that is easily soluble, such an isotope of gallium (III). But most frequently, a radioligand is made by fusing a marker radioisotope to a specific ligand, and this radioligand may attach to certain tissues. A gamma camera can detect the presence of the ligand at a place of interest in the body thanks to this union's ability to transport and bind the radiopharmaceutical and ligand there.

To learn more about spect visit:

brainly.com/question/11366476

#SPJ4

Tina reported a safety hazard at her workplace to OSHA. Representatives from OSHA came to her work and inspected the issue, then gave her employer a citation. The day after Tina's employer received the citation, Tina was given new jobs which were menial and difficult. Which of Tina's rights under OSHA was violated in this situation?

A) Freedom from retaliation for exercising safety and health rights

B) Knowledge of hazardous workplace conditions

C) Obtaining training as provided in the OSHA standards

D) Access to hazard exposure and medical records

Answers

Answer:A freedom from retaliation for exercising safety and health rights

Explanation:

PLS HELP 20 POINTS!!!
In the computer science industry, the process of giving instructions to a computer about what it should do next is called

coding
debugging
decoding
programming

Answers

set of instructions that directs a computer's hardware to perform a task is called a program, or software program.

program is set of instructions that can be executed by a computer to do a specific task. A collection of computer programs, libraries, and related data are referred to as software

Computer programming refers to detail or steps of instructions given to a computer in an appropriate computer language, which enable the computer to perform a variety of tasks in sequence or even intermittently.

Debugging is process of finding and fixing errors or bugs in source code of any software. When software does not work as expected, computer programmers study the code to determine why any errors occurred.

learn more about decoding at

https://brainly.com/question/16170396

#SPJ1

Provide three examples of software projects that would be amenable to the prototyping model​

Answers

Examples of software projects that would be amenable to the prototyping model​ are developing a car model, building a house, weather forecast system.

What is the Prototype Model?

The basic idea of ​​the prototype model is to create a throwaway prototype to understand the requirements rather than freezing them before designing or coding further. This prototype is developed based on the currently known requirements. A prototype model is a software development model.

Prototype models should be used when the target system requires a lot of interaction with the end user.

Example:

When developing a car, manufacturers start with prototypes (or models) that are cheaper and incorporate new technology.When you go to an architect to build a house, they first ask about your requirements. Depending on the number of bedrooms and bathrooms, the type of height required, etc., he designs a map or creates a prototype to show for approval.Weather forecasting system.

To learn more about the Prototype Model, click on the given link: https://brainly.com/question/7509258

#SPJ4

2 11.3.5 quiz: choosing appropriate measures to summarize data sets
this dot plot is symmetric, and the data set has no
extreme values.
1 2 3 4 5 6
7
8
9 10
which of these measures is the best measure of variability for the dot plot?
a. interquartile range (iqr)
b. median
c. mean
d. mean absolute deviation (mad)

Answers

In the given dot plot, where the data is symmetric and lacks extreme values, the best measure of variability would be the interquartile range (IQR).Therefore, the correct answer is (a) interquartile range (IQR).

Which measure is the best measure of variability for the given dot plot?

In the given dot plot, where the data is symmetric and lacks extreme values, the best measure of variability would be the interquartile range (IQR). The IQR represents the range of the middle 50% of the data and is not affected by extreme values or outliers.

This makes it a reliable measure of variability for symmetric datasets. The median, mean, and mean absolute deviation (MAD) are measures of central tendency and do not capture the spread or variability of the data as effectively as the IQR.

Therefore, the correct answer is (a) interquartile range (IQR).

Learn more about dot plot

brainly.com/question/32389215

#SPJ11

What are health tips that relate to use a computer

Answers

Answer:

Use proper posture, keeping hydrated, and using a blue light filter to lessen damage to eyes

An office building has two floors. A computer program is used to control an elevator that travels between the two floors. Physical sensors are used to set the following Boolean variables.
The elevator moves when the door is closed and the elevator is called to the floor that it is not currently on.
Which of the following Boolean expressions can be used in a selection statement to cause the elevator to move?

answer choices
(onFloor1 AND callTo2) AND (onFloor2 AND callTo1)
(onFloor1 AND callTo2) OR (onFloor2 AND callTo1)
(onFloor1 OR callTo2) AND (onFloor2 OR callTo1)
(onFloor1 OR callTo2) OR (onFloor2 OR callTo1)

Answers

The following Boolean expressions, "onFloor1 AND callTo2" or "onFloor2 AND callTo1," can be used in a selection statement to move the elevator.

The commands to move the lift may be simply determined based on the other commands designed to be provided and received by the lift, which indicate what operation it is engaged in.

When the elevator is on the first floor and has to be taken to the second floor, the order "onFloor1 AND callTo2" can be used. The order "onFloor2 AND callTo1" would serve as the reverse of the previously given instruction and cause the lift to operate in the exact opposite manner.

To know more about elevator visit:-

https://brainly.com/question/2168570

#SPJ4

Other Questions
Which choice is equivalent to the expression below?2-3 + 2-2A. 4-5B. 2-5looD WRITE A SHORT PARAGRAPH ON IMPACT OF WRONG COMMUNICATION The photograph shows of waves made by an earthquake. what was transported to this location by the earthquake waves?A. RockB. MatterC. GravityD. Energy Sex refers to one's biological identity, male or female.10 pointsTrueFalse This table shows the top athletes that play both football and basketball. What is the intersection of the set of football players and the set of basketball players? Football Basketball Ahmed Corelli Corelli Donaldson Jimenez Jeffers Miller Nicholas Petersen Yao Yao Zamora {Corelli, Jimenez} {Corelli, Yao} {Yao} {Jimenez} What leads many observers to assume a linear progression? Juan's mother gave him a recipe for trail mix. What is the order of the ingredients from least to greatest?3/4 cup raisins1/3 cup almonds2/3 cup peanuts1/2 cup cereal Which body language can be a sign of a conflict?uncrossed armstight lipsarms by the sideopen fists Kate Spade is a brand of clothing, accessories, and home products. Brand managers at this company are trying to learn which internal influences impact their customers' needs and desires most. Which of the following is a possible internal influence these managers should examine?Personality A student is writing a report for English class about hearing dogs. First, read the draft of the introduction and body of the paper. Then, complete the task that follows. Sue sleeps soundly on her bed when her alarm clock goes off, blasting loud rock music through her apartment. Sue continues to snooze, unaware of the noise. Her dog, Levi, hears the sound and leaps on Sues bed, alerting her to the fact that it is time to get ready for work. This scene from the biographical television series Sue Thomas:F.B.Eye is repeated in thousands of homes across the nation, as many people who are deaf rely on hearing dogs every day to help them in their routines. Hearing dogs are in the category of assistance dogs and are similar to the traditional seeing-eye dogs that help the blind. In fact, the dogs are sometimes referred to as hearing-ear dogs. These dogs help people who are deaf to become aware of sounds in their environment by alerting them to common household sounds such as a phone or doorbell ring, a microwave buzzer, a smoke alarm going off, or a babys cry. The animals also help their owners in public, noticing sounds such as honking horns and other traffic noises. A hearing dogis trained to make physical contact when it hears a sound and then lead the person to the source. Often the dog will lift a paw to the person, as if ready to shake hands. Other times it will be a bit more physical, like Levis leap into bed. In public, the dog will turn to the source of sound, alerting the person to different things such as vehicles, sirens, or other sources of noise. Dogs in training programs have to meet high standards. They must respond to basic obedience commands 90% of the time and must respond to sounds within 15seconds. The person receiving the dog must also go through training, proving he or she can work with the dog and properly take care of it.The student needs a conclusion for the English report. Write a one to two paragraph conclusion for this essay that follows logically from and supports the information in the introduction and body. Please help it was due 3 days ago! you need to verify whether dns servers allow dns zone transfers to all hosts. which built-in windows command should you use? What are the domain and range of the function below? graphdomain: [0,00)range: (-00,00) domain [0,00) range: (-00,4] domain: (0,4) range:(-00,00) domain: (-00,4] range: [0,00) Mens hand _________________________ in english history, the magna carta and the english bill of rights both reinforced the concept of ___ and ___ Aria is making a quilt that is 1.75 meters wide. She wants the area of the quilt to be more than 14 square meters.Write an inequality to represent x, the length of the quilt. 7. 8 Each of the following pairs represents the number of licensed drivers (X ) and thenumber of cars (Y ) for seven houses in my neighborhood:DRIVERS (X ) CARS (Y )5 45 32 22 23 21 12 2(a) Construct a scatterplot to verify a lack of pronounced curvilinearity. (b) Determine the least squares equation for these data. (Remember, you will first haveto calculate r, SSy and SSx)(c) Determine the standard error of estimate, sy|x, given that n = 7. (d) Predict the number of cars for each of two new families with two and five drivers. 7. 9 At With a particular fingering, a flute produces a note with frequency 880Hz at 20.0C . The flute is open at both ends. (a) Find the air column length. Jump to level 1 Suppose the mean height in inches of all 9th grade students at one high school is estimated. The population standard deviation is 3 inches. The heights of 6 randomly selected students are 63, 72, 65, 73, 60 and 62. = 65.5 # Margin of error at 99% confidence level = Ex: 1.23 99% confidence interval [Ex: 12.34 Ex: 12.34] - [smaller value, larger value] Check Try again 18 Feedback? 7. The population of Canada is about 37.59 million. How is this number written in scientificnotation?(Please hurry) spirituals fell out of circulation after the civil war in the united states. true or false?