Selection is the step in algorithm that let's the computer decide which group of steps to perform.
<h3>What is Algorithm?</h3>
This can be defined as set of instructions which are used for solving a problem or accomplishing a task.
Selection happens when there are one or more options are available in which the computer decide which group of steps to perform.
Read more about Algorithm here brainly.com/question/11302120
Answer:
import java.util.Arrays;
import java.util.Scanner;
public class num4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("How many numbers? ");
int n = in.nextInt();
int []intArray = new int[n];
//Entering the values
for(int i=0; i<intArray.length;i++){
System.out.println("Enter the numbers");
intArray[i]=in.nextInt();
}
System.out.println(Arrays.toString(intArray));
int min =intArray[0];
for(int i =0; i<intArray.length; i++){
if(min>intArray[i]){
min = intArray[i];
}
}
System.out.println("The Minimum of the numbers is "+min);
}
}
Explanation:
- Using Java programming language
- Prompt the user for the number of values
- Using Scanner class receive and store in a variable
- Create an array of size n
- Using an for loop continuously ask the user to enter the integers
- Print the array of integers
- Using another for loop with an if statement, find the smallest element in the array of numbers
- Output the the smallest number
Answer:
<em>Plasma display panel </em>(PDP)
Explanation:
<em>Plasma display panel </em>(PDP) is a type of flat panel display that uses small cells containing electrically charged ionized gases or plasmas, to produce an image. PDP consists of millions of tiny gas-filled compartments, or cells, between two panels of glass with parallel electrodes deposited on their surfaces.
Answer:
import java.util.Scanner;
class SquareDisplay {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter an integer in the range of 1-15: ");
int num = scan.nextInt();
if ((num > 0) && (num <= 15)) {
String s = "X".repeat(num) + "\n";
System.out.print(s.repeat(num));
} else {
// your error handling
}
scan.close();
}
}
Explanation:
Answer:
data-driven decision
Explanation:
While 91% of companies say that data-driven decision-making is important to the growth of their business, only 57% of companies said that they base their business decisions on their data. Data-driven decision-making is a great way to gain a competitive advantage, increase profits and reduce costs!