Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

OO T-Mobile 11:17 AM 95% occ blackboard com 2 of 4 Part A Write a new class name

ID: 3814152 • Letter: O

Question

OO T-Mobile 11:17 AM 95% occ blackboard com 2 of 4 Part A Write a new class named PartA and implement the following main method 1. Declare an int variable named multiplyBy Request user input between land 10 and assign itte the ant variable vou declared in step 1 don't forget an itorilelse for range checking) 3, write a loop that wiltake and create a multiplication table that wiltake the number the user entered and multiply that number from to 12. 7, write a Do/WHILI loop that will a. Ask the user to enter anumber(positive or negativel and wilassign itto b Accumulate the servalueinto sumvalue exit the WHILE loop 8, Display the value of (temsin red were entered by the user) 1 and 10: 1 Enter a positive integer or 0 to quit Enter a positive nteger or 0 Enter a positive integer or 0 to quit Rnter a positive integer or 0 to between 1 and 10 Enter a positive integer or 0 to quit: 2 D to quit positive integer or to quit: Enter a positive nteger or 0 to quit Enter a positive nteger or 0 to qukt Enter a positive knteger or 0 to Enter a positive integer or 0 to quit

Explanation / Answer

solution--

hey buddy , find the code below , compile it with command python 'file name'.. save the file as filename.py

multiply=int(input('Give an intger between 1 and 10 '))
if(multiply>=0 and multiply<=10):
   for i in range(12):
       c=str(multiply)+'x'+str(i+1)+'='+str((multiply*(i+1)))
       print(c)
   print(' ')
   userValue=0
   sumValue=0
   while True:
       userValue=int(input('enter number(positive or negative)'))
       sumValue=sumValue+userValue
       if(userValue==0):
           break
   print(sumValue)
else:
   pass