Answer:
A) Switch
Explanation:
In Java and most programming Languages, A Switch Statement provides a multi branch statements which provides a more flexible way for transfer of execution to the branch that fulfills the condition of the expressed value. This is a better way of handling if...elseif....else statements. In this way, a variable is tested for equality against some values. Variables used in switch expressions can only be primitives (int, byte, char), enums and strings. A switch statement has
1. A default statement (optional), appears at the end of the switch and acts as the else condition.
2. A break statement which terminates the switch when reached.
The syntax of a switch statement is given below:
switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}
<span>To have different formatting for odd and even rows,
The option is </span><span>First Column</span>
Answer:
The codes below implement the problem statements
Explanation:
public class Percentages {
public static void computePercent (int a,int b)
{
System.out.println(a+" is "+(a*100/b)+"% of "+b);
}
public static void main(String []args)
{
int a=2;
int b=5;
computePercent(a,b);
computePercent(b,a);
}
}
<u>
</u>
<u>Part(b)
</u>
import java.util.*;
public class Percentages {
public static void computePercent (int a,int b)
{
System.out.println(a+" is "+(a*100/b)+"% of "+b);
}
public static void main(String []args)
{
Scanner s= new Scanner(System.in);
int a=s.nextInt();
int b=s.nextInt();
computePercent(a,b);
computePercent(b,a);
}
}
Answer: When companies charge different
prices for the same product, they're using
B.) Dynamic Pricing
Is the most accurate
Explanation: If a firm can find a way to charge every customer the price he/she values a good at, the firm can capture more profits than it could with a single price, in a given market.
Answer:
Software for personal computers is typically developed and distributed independently from the hardware or operating system manufacturers. Many personal computer users no longer need to write their own programs to make any use of a personal computer, although end-user programming is still feasible. This contrasts with mobile systems, where software is often only available through a manufacturer-supported channel. And end-user program development may be discouraged by lack of support by the manufacturer.
Explanation: