This question is way to long I don’t even understand what your asking
Answer:
The answer to this question can be given as:
Statement:
eurasiaSales = add(euroSales, asiaSales);
//calling function and value in variable (eurasiaSales)
Explanation:
In the above statement, we assume that there is an add function that is already declared. In this function, two variable is passed as the parameter, we add two numbers and return its value. Then we declare the main function in the main function we declare a variable that is (eurasiaSales). This variable holds the value of the add function when we call the function.
Answer:
Explanation:
The code provided is written in Java. The statement is provided right under the /*Type your code here*/. In Java, in order to case one primitive to another you simply need to type the primitive type that you are trying to cast too before the variable and within parenthesis. The output of the new code can be seen in the attached image below.
class LabProgram {
public static int convert(double d){
/* Type your code here */
return (int) d;
}
public static void main(String[] args) {
System.out.println(convert(19.9));
System.out.println(convert(3.1));
}
}
Automatic, three speed transmission