How do you detect that without using an if statement? Did the instructor give an clues?
Type: Posts; User: Norm
How do you detect that without using an if statement? Did the instructor give an clues?
That will require you to work in pennies vs dollars.
Look at using an array to hold the rates and use the type as an index