Question: ( 1 0 points ) Write a program to create a list with the following names: Luna, Max, Ali, Joe, Ann, and Amy. The program
points Write a program to create a list with the following names: Luna, Max, Ali, Joe, Ann, and Amy. The program should display the list and perform the following:
Ask the user to enter a name and determine whether the name is on the list. If the name is on the list, display a message indicating the name is already on the list. Otherwise, add the name to the end of the list then display the revised list.
Ask the user to enter another name and determine whether the name is on the list. If the name is on the list, remove it from the list then display the revised list. Otherwise, display a message indicating the name is not on the list.
Ask the user to enter another name. Place the name at the beginning of the list.
Use a loop to display the list.
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
