Question 1[3 marks] How many of the above text files can we store on a 1.44MB floppy disk? Each text file contains 6,000 characters and is encoded using ASCII: 8 bits per character. ✔ ✘ ↻ A Question 2[3 marks]…
Question 1[2 marks] Class File:​ private filename​ //Constructor for the File class procedure new(strFilename):​ filename = strFilename​ public procedure rename(strFilename)​ if strfilename!="":​ filename = strFilename​ Class MP3 inherits File:​ private title​ private artist​ private duration​ //Constructor for the MP3 class…
Question 1[2 marks] class Padlock: private key private locked //Constructor for the Padlock class: procedure new(str_key,bool_locked): key = str_key locked = bool_locked public function unlock(combination): if combination==key: locked = False return True else: return False public procedure lock(): locked =…