import java.util.Scanner;
public class MyClass1 {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int smallest = 0, largest = 0, num, count = 0;
while (true){
System.out.println("Enter a number (-1 to quit): ");
num = scan.nextInt();
if (num == -1){
System.exit(0);
}
else if (num < 0){
System.out.println("Please enter a positive number!");
}
else{
if (num > largest){
largest = num;
}
if (num < smallest || count == 0){
smallest = num;
count++;
}
System.out.println("Smallest # so far: "+smallest);
System.out.println("Largest # so far: "+largest);
}
}
}
}
I hope this helps! If you have any other questions, I'll do my best to answer them.
Answer: what do you mean exactly?
Answer:
D. a potential hazard
Explanation:
Abrupt changes in road surface or the shape of the road may indicate a potential hazard.
<span>The match of the design feature or area of expertise with the benefit or increase in usability it offers would be the following:
1. standardized placement of elements simplify reading and increase the transparency of the interface
2. plain fonts ensures software fulfills its function in an efficient manner that recognizes and solves likely issues of use
3. cultural fluency takes advantage of preexisting customer expectations regarding layout
4. well-structured program logic enables the designer to make appropriate choices in style and tone for the intended end user</span>