Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 9 Online
OpenStudy (anonymous):

problem set 6 here z my code http://pastebin.com/tQNBiaRn the code z nt working properly :-( plz help

OpenStudy (anonymous):

The trigger instance must be returned to the caller function if either of the conditions is satisfied

OpenStudy (anonymous):

THIS IS MY OUTPUT Trigger file: t1 TITLE NASA **** RUNNING MAKETRIGGER ON TRIGGER FILE **** True --> Is trigger t1 in triggerMap? False **** ERROR: Length of triggerMap should be 1; it is: 0 REQUIRED OUTPUT IS Trigger file: t1 TITLE NASA **** RUNNING MAKETRIGGER ON TRIGGER FILE **** TitleTrigger made with word: NASA --> Is trigger t1 in triggerMap? True

OpenStudy (microbot):

your problem is here: "This helper function should build and return a trigger depending on its type. It also keeps track of triggers and names in a map." your function does not keep track of them in a map (or else called dictionary).

OpenStudy (microbot):

"Modifies triggerMap, adding a new key-value pair for this trigger."

OpenStudy (anonymous):

did it :-)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!