English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi, can someone please provide with the following code that:

loyalty points can be converted into credits (5 loyalty points = 1credit)

Extra Info:
i have 'Loyalty' and 'Credit' fields which are both ints. And i do have a constructer which has parameter values set to 20 for credits and 30 for credits.

2007-11-26 00:52:12 · 1 answers · asked by Slim Shady 1 in Computers & Internet Programming & Design

i mean 30 for loyalty

2007-11-26 00:55:10 · update #1

1 answers

This is a really tough one!

credits = loyaltyPoints / LOYALTY_DIVIDER;

2007-11-26 01:10:18 · answer #1 · answered by AnalProgrammer 7 · 1 0

fedest.com, questions and answers