Answer:
Table function
Explanation:
The table function can also be used to compare between items. The items can be arranged in columns and the features tonbe compared can be placed in columns. With this one can make comparison between the items.
Answer
First part:
The transmitted 8-bit sequence for ASCII character '&' with odd parity will be 00100110. Here leftmost bit is odd parity bit.
Second part:
The invalid bit sequence are option a. 01001000 and d. 11100111
Explanation:
Explanation for first part:
In odd parity, check bit of either 0 or 1 is added to the binary number as leftmost bit for making the number of 1s in binary number odd.
If there are even number of 1s present in the original number then 1 is added as leftmost bit to make total number of 1s odd.
If there are odd number of 1s present in the original number then 0 is added as leftmost bit to keep the total number of 1s odd.
Explanation for second part:
A valid odd parity bit sequence will always have odd number of 1s.
Since in option a and d, total number of 1s are 2 and 6 i.e. even number. Therefore they are invalid odd parity check bit sequences.
And since in option b and c, total number of 1s are 5 and 7 i.e. odd numbers respectively. Therefore they are valid odd parity check bit sequences.
Indentation and alignment are very noticeable on a printed page, so you will probably want to set the tab stops in your document precisely how you want them.
Answer:
A Web service
Explanation:
A Web service is a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format
Answer:
endProgram = "no"
endOrder = "no"
totalBurger = 0
totalFry = 0
totalSoda = 0
total = 0
tax = 0
subtotal = 0
option = 0
burgerCount = 0
fryCount = 0
sodaCount = 0
def resetVariables():
#reset variables
totalBurger = 0
totalFry = 0
totalSoda = 0
total = 0
tax = 0
subtotal = 0
def getBurger():
global burgerCount
burgerCount += int(input("Enter the number of burgers you want: "))
totalBurger =burgerCount * .99
return totalBurger
def getFry():
global fryCount
fryCount += int(input("Enter the number of fries you want: "))
global totalFry
totalFry +=fryCount * .79
return totalFry
def getSoda():
global sodaCount
sodaCount += int(input("Enter the number of sodas you want: "))
global totalSoda
totalSoda +=sodaCount * 1.09
return totalSoda
def calcTotal():
global subtotal
subtotal += totalBurger + totalFry + totalSoda
global tax
tax += subtotal * .06
global total
total += subtotal + tax
return total
def printReceipt(total):
print("Your total is $",round(total, 2))
#Loop to run program again
while endProgram == "no":
resetVariables()
#Loop to take in order
while endOrder == "no":
print("Enter 1 for Yum Yum Burge\nEnter 2 for Grease Yum Fries\nEnter 3 for Soda Yum: \n")
option = int(input("Enter option: "))
if option == 1:
bugertotal = getBurger()
elif option == 2:
frytotal = getFry()
elif option == 3:
sodatotal = getSoda()
endOrder = input("Do you want to end your order? (Enter no to add more items): ")
mytotal = calcTotal()
printReceipt(mytotal)
endProgram = input("Do you want to end the program? (Enter no to process a new order): ")
Explanation:
The python source code displays the menu of a restaurant and the prices of each meal. The module takes multiple orders, calculates and displays the total bill of the order with tax included.