Declare an array named taxRates of five elements of type double and initialize the elements (starting with the first) to the values 0.10, 0.15, 0.21, 0.28, 0.31, respectively.

Declare an array named taxRates of five elements of type double and initialize  the elements (starting with the first) to the values 0.10, 0.15, 0.21, 0.28, 0.31, respectively.

LANGUAGE: JAVA

CHALLENGE:

Declare an array named taxRates of five elements of type double and initialize the elements (starting with the first) to the values 0.10, 0.15, 0.21, 0.28, 0.31, respectively.

SOLUTION:

double[] taxRates = {0.1, 0.15, 0.21, 0.28, 0.31};

Add comment