Answer:
3.1 ns ; 1.25 ; 3.097
Explanation:
Given :
IF, 3 ns;
ID, 2.5 ns;
EX, 2 ns;
MEM, 3 ns;
WB, 1.5 ns.
Use 0.1 ns for the pipelineregisterdelay
maximum time required for MEM = 3 ns
Pipeline register delay = 0.1 ns.
Clock cycled time of the pipelined machine= maximum time required + delay
3ns+0.1 ns = 3.1 ns
2.) for stall after every 4 instruction :
CPI of new machine :
(1 + (1 /4)) = 1 + 0.25 = 1.25
3.)
The speedup of pipelined machine over the single-cycle machine is given by :
Average time per instruction of single cycle ÷ average time per instruction of pipelined
Clock time of original machine = 12ns
Ideal CP1 = 1
CPI of new machine = 1.25
Clock period = 3.1 ns
(12 * 1) / (1.25 * 3.1) = 12 / 3.875
= 3.097
D. Speed up will equal the number of stages in the machine
The part where it checks for the boot order, because the boot order is telling the system, what hardware to research and boot.
I'm assuming you are referring to Excel. There are a few ways to add A1 and B1.
First you could use '=SUM(A1+B1)'
You could also use '=SUM(A1:B1)' which adds the values of all the cells between A1 and B1, but since they are next to each other, this would work.
You could also use '=SUM(A1,B1)' where you list all the cells you want to add with commas in between.
Answer:
#here is code in python.
# read the food bill
tot_bill=float(input("Please enter the food bill:"))
# tax on food
tax=0.06
#choice for tip by user
choice=int(input("enter your choice for tip:(1 for 15%, 2 for 18% and 3 for 20% :)"))
// calculate the total food bill
if choice==1:
tot_food_bill=tot_bill+tot_bill*tax+tot_bill*(.15)
elif choice==2:
tot_food_bill=tot_bill+tot_bill*tax+tot_bill*(.18)
elif choice==3:
tot_food_bill=tot_bill+tot_bill*tax+tot_bill*(.2)
else:
print("invalid choice:")
#print the total food bill
print("total food bill is ",tot_food_bill)
Explanation:
Read the food bill from user and assign it to variable "tot_bill".Initialize the tax=0.06 (i.e. 6%) on the bill.Then ask user to give his choice for tip. if the choice is 1 then tip will be 15%, if 2 then 18% and if choice is 3 Then tip will be 20% of the bill.Calculate the total food bill and assign it to variable "tot_food_bill".
Output:
Please enter the food bill:100
enter your choice for tip:(1 for 15%, 2 for 18% and 3 for 20% :)2
total food bill is 124.0
Answer:
Iv'e answered this question 2 times already lol. The purpose of speakers is to produce audio output that can be heard by the listener. Speakers are transducers that convert electromagnetic waves into sound waves. The speakers receive audio input from a device such as a computer or an audio receiver.
Explanation: I hope this helps!