5 I don’t think it’s good. I thought it was boring.
Answer:
See explaination
Explanation:
MinMax.java
import java.util.*;
public class MinMax
{
static void MinMax(int[] arr)
{
int Min=arr[0]; // initializinf min and max with 1st value of array
int Max=arr[0];
for(int i=0;i<arr.length;i++) // iterating loop only once
{
if(arr[i]>Max) // checking max value
{
Max=arr[i];
}
if(arr[i]<Min) // checking min value
{
Min=arr[i];
}
}
System.out.println("Min Number is "+Min); //printing min value
System.out.println("Max Number is "+Max); //printing max value
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter N value: "); // taking n value
int n=sc.nextInt();
int[] arr=new int[n];
System.out.println("Enter N elements:"); // taking n elements into array
for(int i=0;i<n;i++)
{
arr[i]=sc.nextInt(); // each element into the array
}
MinMax(arr); // calling MinMax() method.
}
}
the output printed on the paper is called hardcopy output. some examples are printer and plotter.
the output produced on display screen and audio sound is called soft copy output. some examples are moniter and speaker.
Answer:
USB cables.
Explanation:
Think of what would happen if you started walking to a friend's house that is 3 houses away from yours. You have a cell and there are no others that you can see. Your friend calls you.
Could you hear what he says with a blue tooth earphone? Likely.
If you are connected by a wifi device. Again likely.
What about a broad band. That would be possible too.
So what about a USB cable. Now there's a problem. The cable would have to be at least 75 feet long (city plots are usually somewhere in the neighborhood of 25 feet wide). You would need an awfully long cable. And that's only 3 houses away.