Question: Implement a function str _ num _ multiply ( ) multiply given two input integers num 1 and num 2 represented as strings ( type
Implement a function strnummultiply multiply given two input integers num and num represented as strings type str return the product of num and num also represented as a string type str
Grade:
is given for support of positive numbers
for support of negative numbers
Note: You must not use any builtin 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 strnummultiplynum: str num: str str:
resultstr
# Write your code there you are NOT allowed to use any of the inbuilt function such as str or int functions
return resultstr
if namemain:
# this is an example of how the function should be called and what example values it would take
printresult : strnummultiply
printresult : strnummultiply
printresult : strnummultiply
printresult : strnummultiply
printresult : strnummultiply
printresult : strnummultiply
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
