Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise In this exercise, you will need to add numbers and strings to the correct arrays. You must add the numbers 1 , 2 ,
Exercise
In this exercise, you will need to add numbers and strings to the correct arrays. You must add the numbers and to the "numbers" array, and the words 'hello' and 'world' to the strings array.
You will also have to correct the values of the variable NumberOfNames and the variable secondname. NumberOfNames should hold the total number of names in the NAMES array, using the $# special variable. Variable secondname should hold the second name in the NAMES array, using the brackets operator Note that the index is zerobased, so if you want to access the second item in the list, its index will be #binbash
NAMES John Eric Jessica
# write your code here
NUMBERS
STRINGS
NumberOfNames
secondname'Vladimir'
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started