View All num of num See all Photos Guidewire This employer has taken extra steps to respond to reviews and provide job seekers with accurate company information, photos, and reviews. Interested for your company?Learn More. www.guidewire.com Overview Reviews Salaries Interviews Jobs Photos Benefits 332 Reviews 290 Salaries 109 Interviews 125 Jobs Follow Add Review or Salary Follow Add Review or Salary Interview Question Senior Software Engineer Interview San Mateo, CA Guidewire Write the function that calculates price of the cup of coffee where price of the condiments depends on size of the coffee cup. For example milk cost 10 c for small cup 15 c for medium and 20 c for large Tags: java See more , See less 8 Answer Add Tags Answer Interview Answer 3 Answers ▲ 1 ▼ You have to index elements of one array of enums by essentially using ordinals of another enum Interview Candidate on Jan 13, 2011 ▲ 0 ▼ Use Decorator pattern Yesu on Nov 22, 2013 ▲ 0 ▼ classic decorator design pattern, 23 design patterns book has this. welcomen on Dec 9, 2013 Add Answers or Comments To comment on this, Sign In or Sign Up.