Answer:
The program to this question as follows:
Program:
import java.util.*; //import package
class Main //defining class Main
{
public static void main(String[] as) //defining main method
{
String input_string, input; //defining string variables
Scanner obz=new Scanner(System.in); //creating scanner class object
System.out.println("Input the string value: "); //print message
input_string=obz.nextLine(); //input value by user
input=new StringBuffer(input_string).reverse().toString(); //creating instance variable with using reverse method
System.out.print(input);//print value
}
}
Output:
Input the string value:
Hello World
dlroW olleH
Explanation:
In the above program code, a class Main is defined, inside this class-main function is declared, inside this function two string variable "input_string and input" are defined, in which the "input_string" variable is used to take input from the user side.
- The input variable used as an instance variable, that uses StringBuffer, reverse, and toString method.
- The StringBuffer accepts the "input_string" variable as parameter and toString, reverse method is used to convert all value into a string and reverse method convert value in reverse order. In the last, the print function is used that print input variable value.
Sorry i donnt speak chinese
Answer:
Ensemble statistics, non selective pathway.
Explanation:
Ensemble statistics is the statistical examination of a group of items which are being viewed as one entity and not as a separate item. And at this point we are talking about the average and the distribution of possessions such as the alignment or hue, over a group of objects or a section in a scene, and therefore it is labeled as the ensemble statistics of the scene. And this is calculated by the nonselective pathway, as this is a form of graphic exploration in the scene, and there are non-selective and selective pathways of visual examination. The non-selective pathways are not planned to distinguish the objects or letters. And henceforth, ensemble statistics and the nonselective pathway is the precise answer.
Answer:Virtualization relies on software to simulate hardware functionality and create a virtual computer system. This enables IT organizations to run more than one virtual system – and multiple operating systems and applications – on a single server. The resulting benefits include economies of scale and greater efficienc
Explanation:
Answer:
def cost(quantity, unit_price, taxable):
if taxable == "Yes":
total = (quantity * unit_price) + (quantity * unit_price * 0.07)
elif taxable == "No":
total = quantity * unit_price
return total
q = int(input("Enter the quantity: "))
p = float(input("Enter the unit price: "))
t = input("Is %7 tax applicable? (Yes/No): ")
print(str("$" + str(cost(q, p, t))))
Explanation:
- Create a function called cost that takes three parameters, quantity, unit price, and taxable
- If the tax is applicable, calculate the total with tax. Otherwise, do not add the tax.
- Return the total
- Ask the user for the inputs
- Call the function with given inputs and print the result