Here's a sample of a program:
char cur[6][20]={"Euro ", "YEN ", "Franc", "ZWD", "DOP", "Exit"}; //five currencies types plus exit option (6)
float rates[5] ={1.3859, 114.9750, 0.8424, 0.00003333, 0.02988}; // five (5)exchange rates
What would the (20) relate to if we are doing currency conversion? Why should the number (20) be used in this example if the conversion is hard-coded why not any other number?
2007-09-17
22:18:55
·
4 answers
·
asked by
tiera29
2
in
Programming & Design