Question: Create a program that will use def functions to print the array, insert a new student name to the array, and remove a student from
Create a program that will use def functions to print the array, insert a new student name to the array, and remove a student from the array. The def main will use a for loop to prompt the user to enter the student names listed below. DO NOT CREATE AN ARRAY BY ASSIGNING THESE NAMES TO THE ARRAY! I do not want to see this code in your program;
studentArray MikeSallyBillJulieCathyJackWillDebbyDaleNancy
After all names have been entered, print the array. Then call the functions remove and insert to modify the array. Then call the print function.
The remove function will remove the student from index position The insert function will add the student name Randy to index position
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
