Answer:
Here the code is given as follows,
Explanation:
Code:-
import java.util.*;
class Chegg {
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter 5 numbers");
int arr[]=new int[5];
int min;
for(int i=0;i<5;i++)
{
arr[i]=sc.nextInt();
}
min=arr[0];
for(int i=1;i<5;i++)
{
if(arr[i]<min)
{
min=arr[i];
}
}
System.out.println(min);
}
}
Answer:
1 PROCESSOR :
(1 × 2.56 × 10^9) + (12 × 1.28 × 10^9) + (5 × 2.56 × 10^8) / 2 GHz = 9.6 s
2 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×2 + (5 × 2.56 × 10^8) / 2 GHz = 7.04 s
Speed -up is 1.36
4 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×4 + (5 × 2.56 × 10^8) / 2 GHz = 3.84 s
Speed -up is 2.5
5 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×8 + (5 × 2.56 × 10^8) / 2 GHz = 2.24 s
Speed -up is 4.29
Explanation:
The following formula is used in this answer:
EXECUTION TIME = CLOCK CYCLES / CLOCK RATE
Execution Time is equal to the clock cycle per clock rate
Answer:
Explanation:
Ok, I don't understand anything at the end because it's utter gibberish.
What you can do, based on the question, is ask user input for the two x and two y coordinates, then use the distance formula. The distance is
Find a way to insert that using the math library.
Hope that helped,
-FruDe
Explanation:
I think you first get interviewed?
Then you get like a test and then have to explain it to the admission people on a whiteboard or something.
Sure, it says "Hulk smash on keyboard"