Answer:
The num >= 0 test condition is not correct
Explanation:
The line would lead to the printing of "Your entered: " + str(num) repeatedly without stopping.
The while loop checks the condition that the "num" variable is less than zero. This condition will always be true as there is no means of resetting the value after initially inputting the value that is less than zero.
Answer:
Total amount of calories = 325
Explanation:
Given:
Amount of carbohydrate = 58 gram
Amount of protein = 12 gram
Amount of fat = 5 gram
Find:
Total amount of calories
Computation:
1 gram protein = 4 calories
1 gram carbohydrate = 4 calories
1 gram fat = 9 calories
Total amount of calories = (58)(4) + (12)(4) + (5)(9)
Total amount of calories = 232 +48 + 45
Total amount of calories = 325
Monitor, keyboard, CPU, mouse, and I believe the USB drive , DVD drive and hardware system
num = float(input("Enter a number: "))
num1 = int(num)
print(num - num1)
I hope this helps!