Quiz 3/Lab 2: Counter Type your solutions. For this quiz, yora will be creating
ID: 3777808 • Letter: Q
Question
Quiz 3/Lab 2: Counter Type your solutions. For this quiz, yora will be creating Counter interface and four (4) clus that ilerite it directly or indirectly. They should hawe the following properties: For Counter interface there hould be: void method ruumed Decrenent that talar void method named Increnent to that takne mo paramters. boolean method Ramed AtLinato that talons paramter string method amed InfoO that takes paramters. void method named Reseto that takem perantere. For the U nboandedCounter elma there should private integer field named counter. public default constructor that awigau 0 to counter. public acce method for the counter field. Decrement decrements counter by 1. Increment( imrements counter by l. AtLinito always returns false. Isroo eeturas a string with the following format (-INF:Explanation / Answer
import win32com.client sh=win32com.client.gencache.EnsureDispatch('Shell.Application',0) ns = sh.NameSpace(r'm:musicAerosmithClassics Live!') colnum = 0 columns = [] while True: colname=ns.GetDetailsOf(None, colnum) if not colname: break columns.append(colname) colnum += 1 for item in ns.Items(): print (item.Path) for colnum in range(len(columns)): colval=ns.GetDetailsOf(item, colnum) if colval: print(' ', columns[colnum], colval)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.