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
Valentin [98]
3 years ago
6

#TODO: This function needs to accept an incoming message and process it accordingly. # This function is called every time the sw

itch receives a new message. #if message.pathThrough == True and message.origin not in self.activeLinks: #self.activeLinks.append(message.origin) #if message.pathThrough == False and message.origin in self.activeLinks: #self.activeLinks.remove(message.origin)
Computers and Technology
1 answer:
barxatty [35]3 years ago
3 0

Answer:

This function is a method of a class object that checks a message path and register or update the previous messages list with only new messages.

Explanation:

def message_check(self ) :

If message.pathThrough == True and \ message.origin not in self.activeLinks:

Self.activeLinks.append( message.origin )

Elif message.pathThrouh == False and \ message.origin in self.activeLinks:

Self.activeLinks.remove( message.origin )

You might be interested in
What are the 4 main types of parking
erik [133]
Parallel parking, emergency parking, parking on a hill, and prohibited parking. at least that's what the handbook in Arizona says, but check with your state handbook.)
6 0
3 years ago
Melissa just bought a new entertainment system for her apartment. It includes a flat-screen TV, surround-sound speakers, and a v
harkovskaia [24]

She should get personal property insurance

4 0
3 years ago
Read 2 more answers
Write an algorithm to print the minimum and maximum of an integer array. Your need to pass the array as a parameter. Since we ca
sammy [17]

Answer:

See explaination

Explanation:

MinMax.java

import java.util.*;

public class MinMax

{

static void MinMax(int[] arr)

{

int Min=arr[0]; // initializinf min and max with 1st value of array

int Max=arr[0];

for(int i=0;i<arr.length;i++) // iterating loop only once

{

if(arr[i]>Max) // checking max value

{

Max=arr[i];

}

if(arr[i]<Min) // checking min value

{

Min=arr[i];

}

}

System.out.println("Min Number is "+Min); //printing min value

System.out.println("Max Number is "+Max); //printing max value

}

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.print("Enter N value: "); // taking n value

int n=sc.nextInt();

int[] arr=new int[n];

System.out.println("Enter N elements:"); // taking n elements into array

for(int i=0;i<n;i++)

{

arr[i]=sc.nextInt(); // each element into the array

}

MinMax(arr); // calling MinMax() method.

}

}

4 0
3 years ago
Although it is not a term Excel uses, how do most people think of Excel?
kobusy [5.1K]

They think of it as a spreadsheet

5 0
2 years ago
How does so called marshalling solve the problem of different byte ordering of sender and receiver? 8. What is the purpose of a
Phantasy [73]

Marshalling solve the problem of different byte ordering of sender and receiver by:

  • By the use of Common Object Request Broker Architecture (CORBA):

<h3>What is Marshalling?</h3>

Marshalling is the act of moving and formatting a group of data structures into an external data depiction type good for transmission in a message.

A port mapper is known to be a kind of protocol that tells or map the number or the kind of version of any type of Open Network Computing Remote Procedure Call (ONC RPC) program to a port that is often used in the work of networking by that version of that given program.

Learn more about portmapper from

brainly.com/question/879750

#SPJ1

8 0
2 years ago
Other questions:
  • To clean dirt and spilled electrolyte from a battery, use a dilute solution of either water and baking soda or water and A. sulf
    13·1 answer
  • Let's say that you handle the IT systems administration for your company. There's a server inside of your organization that chec
    14·1 answer
  • When a typist changes from a conventional typewriter to a word processor, his typing schema will have to _____ to incorporate th
    12·1 answer
  • What was Leonardo da Vinci an expert in
    11·1 answer
  • A type of graph that uses horizontal bars to compare data is called a
    15·2 answers
  • What is an aptitude assessment that matches students with study programs at specific colleges and universities?
    7·2 answers
  • Nearly all personal computers are capable of serving as network servers.
    10·2 answers
  • a document contains a list of items that appear in no particular order. what is the best way to format the list
    5·1 answer
  • 2) List three (3) negative impact of Technology on society
    14·1 answer
  • Complete the following sentence.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!