Answer:
The function in Java is as follows:
public static double func(double num){
num = Math.abs(num);
return num;
}
Explanation:
This defines the function
public static double func(double num){
This determines the absolute function of num
num = Math.abs(num);
This returns the calculated absolute value
return num;
}
Answer:
Prevailing westerlies and jet streams.
Explanation:
Answer on Edg
Answer:
#include <bits/stdc++.h>
using namespace std;
void funct(){
string name;
cout<<"enter the string: ";
cin>>name;
reverse(name.begin(), name.end());
cout<<"The string is : "<<name<<endl;
}
int main()
{
funct();
return 0;
}
Explanation:
create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.
The string enter by user is store in the variable using cin instruction.
after that, we use a inbuilt function reverse() which takes two argument.
firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.
name.begin() it is a function which return the pointer of first character of string.
name.end() it is a function which return the pointer of last character of the string.
finally, print the reverse string.
for calling the function, we have to create the main function and then call the function.
Answer:
Microsoft word and power point
Explanation:
In a Microsoft Word you can make multilevel list and can select different theme and name the buttons to make the customization. Similarly in Microsoft Power Point you can make multilevel list and customize it by Home tab in paragraph group, there are many options to add your customization level.