Q1 , Q2 ,Q3 & Q4.. please
Worksheet Arravs Q1. Write a p number of days that the te temperatures from the keyboard and place them in an array. Compute the average temperature and then count and display the number of days on rogram in a class NumberAboveAverage that counts the mperature is above average. Read ten which the temperature was above average. e a program in a class CountFamiles that counts the number of teger k from the k values Q2. Wr families whose income is below a certain value. Read an in keyboard and then create an array of double values of size k. Read representing family income from the keyboard and place them into the array. Find the maximum income among these values. Then count the families that make less than 10 percent of this maximum income. Display this count and the incomes of these families rit Q3. Write a program in a class FlowerCounter that computes the cost of flowers sold at a flower stand. Five kinds of flowers-petunia, pansy, rose, violet, and carnation- are stocked and cost, respectively, 50, 75e, $1.50, 50c, and 80c per flower. Create an array of strings that holds the names of these flowers. Create another array that holds the cost of each corresponding flower. Your program should read the name of a flower and the quantity desired by a customer. Locate the flower in the name array and use that index to find the cost per stem in the cost array. Compute and print the total cost of the sale. Q4. Write a program in a class CharacterFrequency that counts the number of times a digit appears in a telephone number. Your program should create an array of size 10 that will hold the count for each digit from 0 to 9. Read a telephone number from the keyboard as a string. Examine each character in the phone number and increment the appropriate count in the array Display the contents of the array