Answer:
program by INPUT statement
Explanation:
CLS
REM to find the area of rectangle
INPUT L
INPUT B
LET AOR = L * B
LET " AOR = "; AOR
END
Press F5
Answer:
Explanation:
String str = "Broccoli is delicious.";
String[] Secondstr = str.split(" ");
System.out.println("second word is " + Secondstr[1]);
Answer: Determine the most popular solution.
Explanation:
Some of the approaches to problem solving that are listed here include:
• Gather data and verify the most likely causes.
• Revise the project plan.
• Evaluate the alternative solutions
To solve a problem, one needs to gather the data and verify the likely causes of the problem. This can be done by asking questions, running test, interviewing people, running tests, reading reports, or analyzing data.
The project plan can also be revised. Likewise, when one comes with different solutions, one should weigh the cost and benefits of each in order to choose the best solution.
Determine the most popular solution isn't a correct option.
Answer:
import java.util.Scanner;
import java.util.Arrays;
import java.util.Random;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter low: ");
int low = scan.nextInt();
System.out.print("Enter high: ");
int high = scan.nextInt();
scan.close();
int rndnumbers[] = new int[10];
Random r = new Random();
for(int i=0; i<rndnumbers.length; i++) {
rndnumbers[i] = r.nextInt(high-low+1) + low;
}
for(int i=0; i<rndnumbers.length; i++) {
System.out.printf("%d: %d\n", i, rndnumbers[i]);
}
}
}