Question: Exercise 1: Arrays of Primitives Declare a reference variable for an array of doubles. Name the array prices. Instantiate the prices array to hold 50
Exercise 1: Arrays of Primitives Declare a reference variable for an array of doubles. Name the array prices. Instantiate the prices array to hold 50 doubles. Set the third array element of prices to 13.99. REMEMBER: Array indexing starts at 0. Write a for loop to count the number of values in the prices array that are greater than 10.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
