Complete question
The complete question is shown on the first uploaded image
a The table is shown on the second uploaded image
b The simplest possible sum product is shown on the fifth uploaded image
Explanation:
The explanation is shown on the third fourth and fifth uploaded image
# the user is prompted for input
user_input = int(input("Enter your number: "))
# if the user_input is negative
# it assigns None to numItemsPointer
# and display None
if(user_input < 0):
numItemsPointer = None
print(numItemsPointer)
# if the user_input is positive
# it assigns to numItemsPointer
# the product of the user_input and 10
else:
numItemsPointer = user_input * 10
print(numItemsPointer)
Explanation:
The program is written in Python and it is well commented. The python equivalent of null is None. A sample image output is attached.