Answer:
Explanation:
The following is written in Java. It continues asking the user for inputs until they enter a -1. Then it saves all the values into an array and calculates the number of values entered, the highest, and lowest, and prints all the variables to the screen. The code was tested and the output can be seen in the attached image below.
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int count = 0;
int highest, lowest;
ArrayList<Integer> myArr = new ArrayList<>();
while (true) {
System.out.println("Enter a number [0-10] or -1 to exit");
int num = in.nextInt();
if (num != -1) {
if ((num >= 0) && (num <= 10)) {
count+= 1;
myArr.add(num);
} else {
System.out.println("Wrong Value");
}
} else {
break;
}
}
if (myArr.size() > 3) {
highest = myArr.get(0);
lowest = myArr.get(0);
for (int x: myArr) {
if (x > highest) {
highest = x;
}
if (x < lowest) {
lowest = x;
}
}
System.out.println("Number of Elements: " + count);
System.out.println("Highest: " + highest);
System.out.println("Lowest : " + lowest);
} else {
System.out.println("Number of Elements: " + count);
System.out.println("No Highest or Lowest Elements");
}
}
}
I’m not to sure what this is asking, if by selecting word- it means the word is already left-click selected, so it would be option 3. If not, then it would be option 2 I believe
Answer:
The statement personal self -directed learning is true because, it is a dynamic learning process that can be both change for the organization and contribute to fresh ideas for potential placement of the company.
Explanation:
Solution
In an organisation the management team plays an important role toward's its growth.
This plays a vital role in meeting up to its long-term targets, forging ahead with passion or determination and making any form of adjustments when necessary.
Management is not just about implementing specified proposals. It calls for the analysis of different critical structure, on spot decision-making. this is about learning and can sometimes lead to newly taught results, sometimes positive other times.
Management refers to being actively and consistently engaged with a group of people who work for them. Successful management entails good team work, support from top to bottom of its hierarchy. It requires leadership over a group of individuals who are expected to execute thoughts and opinions on the organisation.
As a part of the management committee also allows for the team leaders to build individual talent. They learn from their way through the various hiccups they face.
Therefore, aside personal self-directed learning, joining the technology group's management team is a proactive learning process that can be both transformative for the organization and contribute to fresh ideas for potential placement of the company.
Answer:
None
Explanation:
I find them scary and they give me nightmares
Answer:
2.5 = float
'2.5' = str
3 = int
Explanation:
The data type: "float" is used for positive or negative decimals.
The data type: "str" is used for a sequence of letters, numbers, or symbols. Since the decimal used apostrophes, this means it's a character literal.
The data type: "int" is used for any positive or negative whole number.