Question: Create the following arrays:(There is not pointers in java so use references, add at the end of the list) a. An integer array called numbers
Create the following arrays:(There is not pointers in java so use references, add at the end of the list)
a. An integer array called numbers with 5 numbers.
b. 5 character arrays name each one for a product in a store, be creative so you dont use similar to another student.
c. A float array called prices with 5 prices
d. A pointer array with 5 pointers. Each pointer must point to one of the 5 character arrays.
3. Create add function(s) to add an element to any of the above arrays.
a. Make sure your add code follows the algorithm shown in the presentations.
4. Create remove function(s) to delete an element to any of the above arrays.
a. Make sure your delete code follows the algorithm shown in the presentations.
5. Create a function to display the contents of an array.
a. Display each element in order with a tab in between them.
6. In your main implement a looping menu system that allows the user to input a number to decide what they want to do with their array and which array they want to do it with.
a. Have them choose an array to manipulate. You will need ask them a question and give them options. The options below are an example, you will need to modify this for your arrays and your menu. You need options for all 8 arrays and an exit condition to exit the program.
b. Display the array they want to modify after the selection.
c. Have them choose something to do with the array. You also need to ask them a question and modify the menu options below to have them choose an action.
d. Have them enter input to add to the array or an index to remove from an array. Be sure to ask them for the correct item.
e. When you are done completing their request, display the array comments, then loop back to the start of the menu (ie letter a above)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
