A=1/2h(a+b)
1/2 can be said as 0.5
so
A=0.5h(a+b)
0.5h is being multiplied with (a+b), taking this expression of left hand side gives
A/0.5(a+b)=h
OR
h=A/0.5(a+b)
This is the final answer
Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter a number: ");
int userVal = input.nextInt();
String aString;
if(userVal < 0)
aString = "negative";
else
aString = "non-negative";
System.out.println(aString);
}
}
Explanation:
Ask the user to enter a number and set it to userVal
Check the value of userVal. If it is smaller than 0, set the string as "negative". If it is not, set it as "non-negative"
Print the string
Answer:
I think is None of this ,
Answer:
Automation testing can be used for:
<u>Input-output test
:</u> If the main function of your software is to transform input data into output data you can configure a new test by providing a new input/output pair, then the test will check to see if the output matches with the expected values.
<u>Unit test
:</u> This test is a script to check the return values of a specific code by initializing it and calling his methods. This is a part of a test-driven development process.
<u>Integration test
:</u> This test is a code level script that does a complete check process involving multiple objects. For example, you might make a test for “buy a product” which checks to see if the database is updated, if the data is correct of the person is correct, and if the person placing the order gets the right confirmation email.
<u>Smoke Tests:</u> This test is executed immediately after implementation on production to ensure that the application is still functioning.