Answer:
May bhe here
https://developer.android.com/studio/intro
Explanation:
Answer:
The method definition to this question can be given as:
Method definition:
double max(double x, double y) //define method with double parameter
{
if (x>=y) //check condition.
return x; //return value
else
return y; //return value
}
double max(int x, int y) //define method with integer parameter
{
if (x>=y) //check condition
return x; //return value
else
return y; //return value
}
double max(char x, char y) //define method with char parameter
{
if (x>=y) //check condition
return x; //return value
else
return y; //return value
}
Explanation:
The above method definition can be described as below:
- In the first method definition first, we define a method that is "max()". In this method we pass two variables as a parameter that is "x and y" and the datatype of this is double. Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.
- In the second method definition, we define a method that is same as the first method name but in this method, we pass two integer variable that is "x and y". Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.
- In the third method definition, we define a method that is same as the first and second method name but in this method, we pass two char variable that is "x and y". Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.
Answer:
The answer is "The program can also be expressed as a binary code, but it is easier for people to understand when it is expressed in a higher programming language".
Explanation:
In the given question some details are missing that is options of the question that can be given as follows:
A. The program can also be expressed as a binary code, but it is easier for people to understand when it is expressed in a higher programming language.
B. The program can also be represented as a binary code that reduces the likelihood of errors.
C. Binary code can not be used for binary code, because binary code can only represent data.
D. Some parts of the program, however, should be printed in a higher-level language for the operation.
The computer knows the only binary language, It is a form of 0 and 1, but this language can't be understood by the user. It will convert into high-level language, that is understood by the user, that's why this option is correct. In which accepts of option A, all options are wrong that can be described as follows:
- In option B, It is wrong, because the user may not understand binary language, and he can also be writing some wrong code that is converted in binary code, that will increase error.
- In option C and option D, is incorrect because all the data that is stored in the computer is in the form of binary code.
It is a code for representing 128 English characters as numbers, with each letter assigned a number from 0 to 127. For example, the ASCII code for uppercase M is 77. Most computers use ASCII codes to represent text, which makes it possible to transfer data from one computer to another.
C. a payday lender is a type of loan