Go through (traverse) the list item by item and do the following:
Print the atomic number - element name for any element that starts with an 'H' or an 'N'. For example 1 - Hydrogen would be printed for the first element.
(Hint: How does the index number compare to the atomic number?)
Print the list in alphabetical order (ascending)
Print the list in reverse alphabetical order (descending)
Go through (traverse) the list item by item and do the following: (HINT: Be careful of the order you go!)
Remove any elements that start with the letter 'C'
Print the resulting list with the 3 'C' elements removed.
PART 2
For this little program you will create a list of numbers and then perform some actions on it.
Ask the user to enter 2 digit positive numbers repeatedly until they enter a -1. Make sure that they only enter positive 2-digit numbers.
Display the list of numbers, count, total, maximum, minimum and average of the numbers after the user enters -1.
Display the sorted list of numbers.
Define and call a function that will display the median of the list of numbers. It will take the list as a parameter and return the median value. (You will need to consider if the number of numbers is odd or even.)