Guidewire

  www.guidewire.com
Work in HR? Unlock Free Profile

Guidewire Senior Software Engineer Interview Question

I interviewed in San Mateo, CA and was asked:
"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
Add Tags [?]
Answer

Part of a Senior Software Engineer Interview Review - one of 91 Guidewire Interview Reviews

Answers & Comments

1
of 2
votes

You have to index elements of one array of enums by essentially using ordinals of another enum

- Interview Candidate on Jan 13, 2011
0
of 0
votes

Use Decorator pattern

- Yesu on Nov 22, 2013
0
of 0
votes

classic decorator design pattern, 23 design patterns book has this.

- welcomen on Dec 9, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.