Write a function called displayLocations to receive a pointer to the address of the first element of the array and the number of elements in the array. Display the number of each item and their location in a more readable format in columns as shown in the screen shot below. Call the function displayLocations from the main function.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
100%
Write a function called displayLocations to receive a pointer to the address of the first element of the array
and the number of elements in the array. Display the number of each item and their location in a more
readable format in columns as shown in the screen shot below.
2.
Call the function displayLocations from the main function.
ITT
Location of items
Section
Shelf
3
Item Nr SRoom
01
2
02
03
3
6
2
3
04
3
05
06
3
1
07
08
09
10
Transcribed Image Text:Write a function called displayLocations to receive a pointer to the address of the first element of the array and the number of elements in the array. Display the number of each item and their location in a more readable format in columns as shown in the screen shot below. 2. Call the function displayLocations from the main function. ITT Location of items Section Shelf 3 Item Nr SRoom 01 2 02 03 3 6 2 3 04 3 05 06 3 1 07 08 09 10
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT