-------------------------------------------------------------------------- Software Design and Development Fall 1995 COM 1205 --------------------------------------------------------------------------- Final - Answer Form YOUR NAME: Final - Answer Form YOUR NAME: QUESTION 1: 14 UNKNOWNs, 7 points each 98 QUESTION 2: 2 UNKNOWNs, 10 points each 20 QUESTION 3: 5 UNKNOWNs, 5 points each 25 QUESTION 4: 5 UNKNOWNs, 4 points each 20 163 points total Question 1: ================================================== UNKNOWN1 = *from* Bus *to* Person UNKNOWN2 = *from* Bus *to* Person UNKNOWN3 = Person UNKNOWN4 = if (!iStopId->g_equal( this->get_destination() )) newPasList->append(this); UNKNOWN5 = this->set_passengers(newPasList); UNKNOWN6 = BusRoute *to* BusStop UNKNOWN7 = BusStop UNKNOWN8 = if (iStopId->g_equal( this->get_id() )) return_val = this; UNKNOWN9 = *from* BusStop *to* Person UNKNOWN10 = *from* BusStop *to* Person UNKNOWN11 = Person UNKNOWN12 = this->get_v()->set_val(newPos); UNKNOWN13 = (iStopId->g_equal( this->get_destination() )) UNKNOWN14 = return_val Question 2: ================================================== UNKNOWN1 = "(busroutes" FourPlusList ")". UNKNOWN2 = BusRoute {"++++" BusRoute}. Question 3: ================================================== UNKNOWN1 = < buses > Bus_List UNKNOWN2 = Bus_List ~ { Bus }. UNKNOWN3 = Bus UNKNOWN4 = < location > RouteLoc UNKNOWN5 = < position > RouteLoc Question 4: ================================================== UNKNOWN1 = BusRoute* busRoute = this ; UNKNOWN2 = BusRoute* busRoute UNKNOWN3 = BusRoute* busRoute UNKNOWN4 = each_Bus UNKNOWN5 = next_Bus