Write a program to calculate average income by gender based on the following data, where F stands for female and M for male. F 62,000 M 25,000 F 38,000 F 43,000 M 65,000 M 120,000 F 80,000 M 30,100 You should be able to allow users to type in a whole line such as F 80,000 followed by next line M 30,100.Without any change made to your program, your program should be able to process a new set of data, such as follows: M 52,000 M 35,000 F 48,000 M 33,000 F 75,000 F 110,000 F 90,000 M 30,100
Do Project 3.3 (1st ed.) or Project 6 (2nd ed. & 3rd ed.) Fibonacci numbers. List the first 100 numbers and the ratio of a number to its previous number, such as 1/1 = 1, 2/1 = 2, 3/2 = 1·5, 5/3 = 1·666..., 8/5 = 1·6, 13/8 = 1·625, 21/13 = 1·61538....
Based on your study of Display 3.8, write a code to find the max and min of a list of number. For example, given 1,3,5, and9, the max is 9 and the min is 1. Your program should be able to process a list of any length.
Write a program to generate the series 1, 1, 2, 3, 5, 8, 13, ... The series has a property that the third number is the sum of the first and second numbers. For example, 2=1+1, 3=1+2, and 5=2+3