Compressions and rarefactions
Answer:
752.71 kilobytes
Explanation:
Given ;
956-pixel x 1290-pixel
Shades of gray, = 32
Bit depth (n) = 2^n
32 = 2^5
Bit depth, n = 5 bits / pixel
The size of display memory :
Pixel dimension * n
(956 Pixel * 1290 pixel) * 5 bits /pixel
= 6166200 pixel * bits / pixel
= 6166200 bits
Converting bits to kilobytes :
1 bit = 1/8 bytes
1 byte = 1/1024 kilobytes
Hence,
1 bit = 1/(8 * 1024) kilobytes
1 bit = 1/8192 kilobytes
6166200 bits = (1/8192 * 6166200) kilobytes
= 752.7099609375 kilobytes
= 752.71 kilobytes
Answer:
<em>●</em><em> </em><em>Creates innovation</em>
<em>●</em><em> </em><em>Takes and makes decision</em>
<em>●</em><em> </em><em>Organizing</em><em> </em><em>resources</em>
<em>●</em><em> </em><em>Takes</em><em> </em><em>and</em><em> </em><em>bears</em><em> </em><em>risks</em>
Answer:
import java.util.Arrays;
import java.util.Scanner;
public class LatinHire {
public static void main(String[] args) {
Scanner in = new Scanner (System.in);
System.out.println("Enter Five integers");
int num1 = in.nextInt();
int num2 = in.nextInt();
int num3 = in.nextInt();
int num4 = in.nextInt();
int num5 = in.nextInt();
int [] intArray = {num1,num2,num3,num4,num5};
System.out.println(Arrays.toString(intArray));
System.out.println("The Maximum is "+returnMax(intArray));
System.out.println("The Minimum is "+returnMin(intArray));
}
public static int returnMax(int []array){
int max = array[0];
for(int i=0; i<array.length; i++){
if(max<array[i]){
max= array[i];
}
}
return max;
}
public static int returnMin(int []array){
int min = array[0];
for(int i=0; i<array.length; i++){
if(min>array[i]){
min= array[i];
}
}
return min;
}
}
Explanation:
- This is implemented in Java Programming Language
- Two Methods are created returnMax(Returns the Maximum Value of the five numbers) and returnMin(Returns the minimum of the five numbers)
- In the Main method, the user is prompted to enter five numbers
- The five numbers are saved into an array of integers
- The returnMax and returnMin methods are called and passed the array as parameter.
- The entire array of numbers inputted by the user as well the Max and Min are printed