#let the user input data
Hours = int(input(“enter how many hours were worked”))
Pay_rate = float(input(“Enter the pay rate”))
Pay_amount = Pay_rate * Hours
#calculate the wages
Print (Pay_amount)
#print the final answer
Answer: there is an overflow
Explanation:
Here using 4-bit signed fields to store the addition value.
0111 + 0101 = 1100
In above addition the MSB is reserved for sign.
If MSB is 0 means the number is positive.
If MSB is 1 means the number is negative.
The first number 0111 has MSB 0 means it is a positive number.
The second number 0101 has MSB 0 means it is also a positive number.
But after addition the result obtained is 1100 which MSB is 1 indicating the
result is negative number.
How can it be possible to add two positive numbers and get a negative number as result.
This type of situation is called overflow situation.
It is used for error detection purpose.
therefore there is an overflow
Answer: Tim McGraw
Explanation:
The National FFA Organization is a youth organization that originally aimed to encourage the youth to venture into agriculture by offering agriculture education to youth in high schools and middle schools. In recent years they started offering education in other areas such as business and technology.
The FFA is quite famous and has had and still has a lot of members. It is of no surprise therefore that some of their alumni are now stars. Famous Country musician Tim McGraw is one such alumni and he was a member of the FFA in his hometown of Start, Louisiana.
Other stars who were part of the FFA include; Taylor Swift and Sterling Martin.
Let the message be M : 1001 0001 and the generator function is G : 1001
Solution :
CRC sender
<u> </u>
1001 | 1001 0001 000
<u> 1001 </u>
<u> 0000 0001 </u>
1000
<u> 1001 </u>
0001 000
<u> 1 001 </u>
0001
Here the generator is 4 bit - 1, so we have to take three 0's which will be replaced by reminder before sending to received--
eg 1001 0001 001
Now CRC receiver
<u> </u>
1001 | 1001 0001 001
<u> 1001 </u>
0000 0001
<u> 1001 </u>
1000
<u> 1001 </u>
0001 001
<u> 0001 001 </u>
0000
No error