locations ← ["Magic Kingdom", "EPCOT"] restaurantNames ← [ "Aloha Isle", "Casey's Corner", "The Plaza Restaurant", "The Diamond Horseshoe", "Be Our Guest Restaurant", "Connections Eatery", "La Hacienda de San Angel", "Le Cellier Steakhouse", "Monsieur Paul", "Cinderella's Royal Table", "The Crystal Palace", "Space 220"] restaurantLocations ← [ "Magic Kingdom", "Magic Kingdom", "Magic Kingdom", "Magic Kingdom", "Magic Kingdom", "EPCOT", "EPCOT", "EPCOT", "EPCOT", "Magic Kingdom", "Magic Kingdom", "EPCOT"] restaurantPriceRanges ← [1, 1, 2, 3, 4, 1, 2, 3, 4, 4, 4, 4] PROCEDURE getLocation() { num ← 1 REPEAT UNTIL (num > LENGTH(locations)) { DISPLAY(num) DISPLAY(locations[num]) num ← num + 1 } DISPLAY("Location number:") locationNum ← INPUT() REPEAT UNTIL (locationNum ≥ 1 AND locationNum ≤ LENGTH(locations)) { DISPLAY("Invalid location number") DISPLAY("Location number:") locationNum ← INPUT() } RETURN (locations[locationNum]) } PROCEDURE getPriceRange() { DISPLAY("1: $14.99 and under per adult") DISPLAY("2: $15 to $34.99 per adult") DISPLAY("3: $35 to $59.99 per adult") DISPLAY("4: over $60 per adult") DISPLAY("Price range: ") priceRange ← INPUT() REPEAT UNTIL (priceRange ≥ 1 AND priceRange ≤ 4) { DISPLAY("Invalid price range") DISPLAY("Price range:") priceRange ← INPUT() } RETURN (priceRange) } PROCEDURE printMatchingRestaurants(location, priceRange) { index ← 1 REPEAT UNTIL (index > LENGTH(restaurantNames)) { IF(restaurantLocations[index] = location AND restaurantPriceRanges[index] = priceRange) { DISPLAY(restaurantNames[index]) } index ← index + 1 } } location ← getLocation() priceRange ← getPriceRange() printMatchingRestaurants(location, priceRange)