Explanation:
A.)
we have two machines M1 and M2
cpi stands for clocks per instruction.
to get cpi for machine 1:
= we multiply frequencies with their corresponding M1 cycles and add everything up
50/100 x 1 = 0.5
20/100 x 2 = 0.4
30/100 x 3 = 0.9
CPI for M1 = 0.5 + 0.4 + 0.9 = 1.8
We find CPI for machine 2
we use the same formula we used for 1 above
50/100 x 2 = 1
20/100 x 3 = 0.6
30/100 x 4 = 1.2
CPI for m2 = 1 + 0.6 + 1.2 = 2.8
B.)
CPU execution time for m1 and m2
this is calculated by using the formula;
I * CPI/clock cycle time
execution time for A:
= I * 1.8/60X10⁶
= I x 30 nsec
execution time b:
I x 2.8/80x10⁶
= I x 35 nsec
Answer:
By the numbers: “The ENIAC contained 17,468 vacuum tubes, along with 70,000 resistors, 10,000 capacitors, 1,500 relays, 6,000 manual switches and 5 million soldered joints. It covered 1,800 square feet (167 square meters) of floor space, weighed 30 tons, consumed 160 kilowatts of electrical power.” More info
Answer:
I'm confusd waht u m me ljhnab
Explanation:
Answer:
// here is code in java.
import java.util.*;
// class definition
class Solution
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object
Scanner s=new Scanner(System.in);
// variables
String s_name;
int s_num;
System.out.print("Please enter the name:");
// read the student name
s_name=s.nextLine();
System.out.print("Please enter the number:");
// read the student number
s_num=s.nextInt();
// print name and number 12 times
for(int i=0;i<12;i++)
{
System.out.println(s_name+"----"+s_num);
}
}catch(Exception ex){
return;}
}
}
Explanation:
Create a scanner class object to read input from user.Read the student name and the number from user and assign them to variable "s_name" and "s_num".Print the student name and number 12 times with the help of for loop.
Output:
Please enter the name:Mary Kaur
Please enter the number:123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456