Answer:
// here is code in Java.
// package
import java.util.*;
// class definition
class Main
{
// method that return sum of two sale value
public static int Add(int euroSales,int asiaSales)
{
// return the sum
return euroSales+asiaSales;
}
//main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// variables
int euroSales=100;
int asiaSales=150;
int eurasiaSales;
// call the function
eurasiaSales=Add(euroSales,asiaSales);
// print the sum
System.out.println("total sale is:"+eurasiaSales);
}catch(Exception ex){
return;}
}
}
Explanation:
Declare and initialize two variables "euroSales=100" and "asiaSales=150". Declare another variable eurasiaSales. Call the method Add() with euroSales and asiaSales as parameter. This method will add both the value and return the sum.This sum will be assigned to variable eurasiaSales.Then print the sum.
Output:
total sale is:250
Answer:
The get() method of the ArrayList class accepts an integer representing the index value and, returns the element of the current ArrayList object at the specified index. Therefore, if you pass 0 to this method you can get the first element of the current ArrayList and, if you pass list.
Answer: Code of ethics
Explanation: Code of ethics in professional field or organizational field is referred as the principles that are responsible for the correct conduct of business organization by governing its functioning and decisions.It is a major key of business field as it maintains right practices,handles issues, provides guidance etc.
Other options are incorrect because business ethics cannot be implemented as principle for the governing the organization working and employees. Common good practice and approach is the basic good conduct and approaching but these factors don't govern the business.
The abstract data type is a type of data type whose behavioural manner is always determined by a set of values and a set of operations.
<u>Explanation:</u>
These data types depend only on extracting the data and hiding the essential background data. That is why it is called an abstract data type.
It will not show how it is implemented, what algorithms are used and how the data is manipulated.
The abstract data type has three types
i)List ADT
ii)Stack ADT
iii)Queue ADT.
This is how an abstract data type works.
Answer:
simply click the main brainly logo at the top left and it will drop you a feed. then look around for questions you want to answer and click it, then after click add answer. type your response