Write aim, algorithm and python program and draw flowchart for the following.
1. Calculate the number of vowels and spaces inbetween words in a given sentence.
2. For given list a, with elements 91,97,113,131,195, 227, 277,307,317,337,387,397, print all the prime numbers (in list a) in list b and print all the composite numbers (in list a) in list c.
3. Declare the election result for 3 candidates based on the following data. No. of population:25. Create a list containing age of all the people. People below 18 years are not eligible to vote. Display result with no. of people, no of voters, vote secured by each candidate with name, winner of the election, vote percentage of each candidate and margin of victory.
4. Print diamond shaped for 2n rows for a given number n. (Example for n=5 the structure is given below)
*
* *
* * *
* * * *
* * * * *
* * * * *
* * * *
* * *
* *
*
5. Arrange first half of the elements 5,2,9,7,1,3,0,4,6,8 in ascending order and last half of the elements in descending order and print the result in the list without using any inbuilt function.[1, 2, 5, 7, 9, 8, 6, 4, 3, 0]
6.print the list of Armstrong numbers between 1 and 10000