Question: When I try to run the program I get an error message and i don't know why. I need help. La Chapter 7_2.py - C:/Users/mimaes/Desktop/Chapter

When I try to run the program I get an error message and i don't know why. I need help.
La Chapter 7_2.py - C:/Users/mimaes/Desktop/Chapter 7_2.py (3.8.1) File Edit Format Run Options Window Help 1 class Stock: 2 def_init_(self, symbol, name, previousClosingPrice, currentPrice) WN self._symbol = symbol self._name = name self._previous ClosingPrice = previous ClosingPrice self.currentPrice = current Price COCO O 9 def getName(self): 10 return self._name 12 def getSymbol(self.): 13 return self._symbol 15 def getPreviousPrice(self.): 16 return self._previousClosing Price 18 def setPreviousPrice(self, previousPrice): 19 self._previous Closing Price = previousPrice 21 def getCurrentPrice(self): return self._currentprice def setCurrentPrice(self, currentPrice) self._currentPrice = current Price 27 def getChange Percent(self): return ((self._currentPrice - self._previous ClosingPrice) / self previous ClosingPrice) * 100 30 def main() stck = Stock('INTC', 'Intel Corporation', 20.5, 20.35) 32 print("Stock: Price-change percentage") print(stck.getChange Percent()) 35 main() Ln: 33 Col: 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
