Question #5037

You are given a table that shows the total number of cars sold by a local car manufacturer in Johor Bharu for the first six months in the year 2008.

Month Jan Feb Mar Apr May Jun

Number of cars sold (units) 191 196 269 308 236 145

Based on the figure given above, you are required to write a Java program using array to store all the information given above and a for loop to determine the sum of all the odd numbers in the array. Finally, the program should display the result.

Month Jan Feb Mar Apr May Jun

Number of cars sold (units) 191 196 269 308 236 145

Based on the figure given above, you are required to write a Java program using array to store all the information given above and a for loop to determine the sum of all the odd numbers in the array. Finally, the program should display the result.

Expert's answer

## Comments

## Leave a comment