Write a program that will search an array for a specific name.
user will input a name to search the elements in the array for
if the name exists it will output a “Name found in array” message to the user
if it is not present in the array the name is appended to the array and a “Name not found in array, now added” message is output to the user
the append the new name to the array
output the whole arrays contents on screen
Use the following array code at the start of your program:
names = ["Alan","Terry","Paul","Gary","Ruby","Jess","Ethan","Matthew","Gemma","Diana","Simon","Stephen","Jimmy","Darren"]
Write a program that will use an array structure to collect and sort 10 student test marks.
user to input 10 student marks into an array
sort array using arrayname.sort()
output array to the screen.
Make a copy of you previous program and further develop your program to output the student average grade and the total number of marks the class achieved.
Write a program that will search an array for a user defined integer number (array is given).
user enters number to search for
array is searched to check if number is present
if number is present then output which index position the number was located in
if the number was not present then output a suitable message that states the number was not present in the array
array of numbers:
numbers = [163,315,134,343,509,37,616,51,936,527,665,401,457,787,231,307,956,261,608,369,260,294,794,831,723,82,682,672,452,597,634,861,836,362,685,441,952,651,299,624,467,521,539,999,90,120,997,263,934,573,449,49,60,160,884,866,208,119,629,398,648,989,45,917,494,701,215,241,350,823,413,887,435,497,453,300,415,191,621,69,440,672,643,172,725,831,860,418,755,428,928,389,445,611,751,104,754,115,693,857,72,555,707,208,943,305,847,265,907,405,492,919,233,489,877,194,785,727,659,246,553,580,185,748,216,403,571,902,493,359,205,978,582,725,136,295,1,649,549,931,472,143,580,682,612,550,112,535,726,580,356,642,500,676,612,100,379,600,263,457,80,87,687,804,130,180,998,891,826,516,826,169,732,637,983,350,906,339,893,241,321,995,333,484,205,672,709,562,383,102,301,759,354,116,363,394,154,769,498,856]