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");
}
}
}
The type of flaw that the application is said to have is known to be called race condition.
<h3>What is meant by
race condition?</h3>
A race condition is known to be a form of unwanted situation that takes place when a device or system tries to carry out two or more operations at the same given time, but due to the nature of the device or system, the operations had to b be done in the right sequence to be carried out correctly.
Therefore, The type of flaw that the application is said to have is known to be called race condition.
Learn more about race condition from
brainly.com/question/13445523
#SPJ1
Answer:
ASP.NET ,C#.NET,SQLServer,HTML,JavaScript
Explanation:
To build any web based application we need one presentation layer(HTML)
and for client side scripting JavaScript.
ServerSide ASP.NET Technology and C#.NET to write your business layer
Sql programming to store data in sql server
Answer:
The four primary sources of display problems are;
1) Monitor
2) Video Cable
3) Video driver
4) Video adapter card
Explanation:
1) Monitor
A computer monitor also known as a video display unit, VDT, or video display terminal is an output device that displays pictorial information sent from the video card
2) Video cable
The data connection cable from the monitor to the video card
3) Video driver
The program that enables the operating system work with the installed video card
4) Video adapter card
A card converts image data information into images information for display by a display output device.