Answer:
The program in Python is as follows:
qty = int(input("Quantity: "))
price = 100 * qty
if qty >1000:
price = (100 - 0.10 * 100) * qty
print("Cost: "+str(price))
Explanation:
This prompts the user for the quantity
qty = int(input("Quantity: "))
This calculates the price or cost, without discount
price = 100 * qty
This checks if the quantity is greater than 1000
if qty >1000:
If yes, this calculates the price or cost, after discount
price = (100 - 0.10 * 100) * qty
This prints the calculated cost
print("Cost: "+str(price))
It would be C- crop. This allows you to specifically delete parts of the image using drag and drop features. Hope this helps!
Define variables
left is l
right is r
Ask input
left or right
Ask input value
Equate l or r to the input value
Show ladder with steps equal to input value and in the side of input variable
Answer:
FFF4
Explanation:
Binary representation of 12 = 00001100
Expressing it in hexadecimal format : 0C
Binary representation of -12:
Step 1 : Computing 1's complement for 12 =11110011
Step 2 : Adding 1 to 1's complement to get the 2's complement =>
11110011+1 = 11110100
Converting the 2's complement representation to hexadecimal format:
F4 ( 8 bit representation) or FFF4 ( 16 bit representation)
Answer:
Layer 2 destination address = 00-00-0c-94-36-ab
Layer 2 source address = 00-00-0c-94-36-bb
Layer 3 destination address = 172.16.20.200
Layer 3 source address = 172.16.10.200
Explanation:
To properly understand the given answer, let us define some terms used in the narrative of the question:
Subnet: The sub network or as popularly called subnet is a logical division of the internet protocol of a network into many different and smaller network. It is typically used to create partitions or subdivisions of large networks into bits.
PDU: The PDU can be said to be an abbreviation for the word power distribution unit or protocol data unit. It can also be refereed to as an IT device that possess many output ports or terminals. They are mostly used to distribute or transmit power or data to other operating devices with the telecommunication system.
Now referring back to the question asked and the image attached below, we can see that host a and b send their signal through subnet teachers while host c and d send their signal through subnet students thus,
Layer 2 destination address = 00-00-0c-94-36-ab
Layer 2 source address = 00-00-0c-94-36-bb
Layer 3 destination address = 172.16.20.200
Layer 3 source address = 172.16.10.200 are the correct destination.