Answer: Following is a python code
def solveEquation(x,y,z):
res=z-y+(2*x) #stores expression's value
return res
solveEquation(2,1,4) #calls function
OUTPUT :
7
Explanation:
In the above code solveEquation is the function which takes three arguments x,y and z and their type is decided while calling the function and passing the values to these arguments. After the values are passed, an equation is written which is solved and the result is stored in variable res and then that variable's value is returned.
Answer:
public static int sumStrings(String s1, String s2, String s3) {
int i1 = Integer.parseInt(s1);
int i2 = Integer.parseInt(s2);
int i3 = Integer.parseInt(s3);
int sum = i1 + i2 + i3;
return sum;
}
Explanation:
- Create a method called <em>sumStrings</em> that takes three strings
- Convert each string to integer using Integer.parseInt() method
- Sum the strings
- Return the result
Answer:
The answer is "XML"
Explanation:
Extensible Markup Language is a marking language, which specifies a collection of document. It uses the coding rules, which is readable for both man and computer.
- It is a scalable way of creating data formats and sharing structured data through the internet or private networks digitally.
- It permits the development of custom tags to identify, transfer, verify and view data among apps and organizations.