Answer:
A) Parentheses
Explanation:
Conditional statements control behavior in JavaScript and determine whether or not pieces of code can run.
There are multiple different types of conditionals in JavaScript including:
If” statements: where if a condition is true it is used to specify execution for a block of code.
“Else” statements: where if the same condition is false it specifies the execution for a block of code.
“Else if” statements: this specifies a new test if the first condition is false.
Now that you have the basic JavaScript conditional statement definitions, let’s show you examples of each.
If Statement Example
As the most common type of conditional, the if statement only runs if the condition enclosed in parentheses () is truthy.
EXAMPLE
if (10 > 5) {
var outcome = "if block";
}
outcome;
OUTPUT
"if block"
Here’s what’s happening in the example above:
The keyword if tells JavaScript to start the conditional statement.
(10 > 5) is the condition to test, which in this case is true — 10 is greater than 5.
The part contained inside curly braces {} is the block of code to run.
Because the condition passes, the variable outcome is assigned the value "if block".
When you're busy doing things and/or be too sick for over the phone communication
Answer:
import java.util.Scanner;
public class num12 {
public static void main(String[] args) {
Scanner scr = new Scanner(System.in);
System.out.println("Enter a Deposit Amount");
double amt = scr.nextDouble();
System.out.println("Income tax in percentage");
double incomeTaxRate = scr.nextDouble()/100;
System.out.println("Yearly interest rate:");
double rate = scr.nextDouble();
double intRate = rate/100;
double interest = (amt*intRate)-(amt*incomeTaxRate);
System.out.println("The Interest on "+amt+" at "+rate+"% after one year is "+interest);
}
}
Explanation:
Find the sample output attached
Java's Scanner class is used to prompt and receive values for deposit amount, income tax rate and interest rate
The yearly interest is calculate by interest = (amt*intRate)-(amt*incomeTaxRate);
A. Assets increase, and liabilities decrease.