Question: in python please :D 11.12 LAB: Complex Numbers Write a class complex0 that contains methods getNum and add0. The getNum user and the add0 method
in python please :D


11.12 LAB: Complex Numbers Write a class complex0 that contains methods getNum and add0. The getNum user and the add0 method should return the surm of the complex numbers. EX: method is required to get complex numbers frorm the Enter the real and tmaginary parts of the complex number: 12,21 Do you wish to enter another complex number? y Enter the real and imaginary parts of the complex number: 21,31 Do you wish to enter another complex number? n (12.0+21.0i)+ (21.0+31.0i)-33.0+52.01 LAB ACTIVITY 1.12.1: LAB: Complex Numbers 0/5 LAB ACTIVTY 11.12.1: LAB: Complex Numbers 0/5 main.py Load default template... 1 class cn: 3 def getNum(self): 5 write code to get input and add it to list 7def addself, l) 10 ifnamemain_ 12 n-cnC) 13 14 15 16 17 18 n.getNum) n.add(self.l) Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box then click Run program and abserve the program's outnut in the Develop mode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
