Question: Implement a function str _ num _ multiply ( ) multiply given two input integers num 1 and num 2 represented as strings ( type

Implement a function str_num_multiply() multiply given two input integers num1 and num2 represented as strings (type str), return the product of num1 and num2, also represented as a string (type str).
Grade:
50% is given for support of positive numbers
50% for support of negative numbers
Note: You must not use any built-in Integer library or convert the inputs to intTip: Try to remember how a number could be represented, can you break down a number into some smaller parts.
# Use a given base code
def str_num_multiply(num1: str, num2: str)-> str:
result_str =""
# Write your code there you are NOT allowed to use any of the inbuilt function such as str() or int() functions
return result_str
if __name__=='__main__':
# this is an example of how the function should be called and what example values it would take
print("result 9*3: ",str_num_multiply("9","3"))
print("result 100*200: ",str_num_multiply("100","200"))
print("result 16*128: ",str_num_multiply("16","128"))
print("result -5*10: ",str_num_multiply("-5","10"))
print("result -64*-64: ",str_num_multiply("-64","-64"))
print("result 16*-64: ",str_num_multiply("16","-64"))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!