Write a program that reads one positive integer and finds the sum and average of ODD digits. If the number doesn't have odd digits, the program prints an appropriate message. Assume that your input is valid. Don't run your program for numbers larger than 2147483647.
Example 1: 26448
Output: no odd digits
Example 2: 67132
Output: sum of odd digits is 11, average of odd digits is 3.6666667
One airline company charges 10% extra for tickets in the first 5 rows and gives 5% discount for tickets in the last 5 rows. Write a program that first reads the number of family members going on the airplane, the base price for one ticket and the number of rows on the airpline. Then the program reads the row number for each ticket. The program finds the total cost of the tickets and the average ticket price. You can assume that input is valid.