Write a program that contains the following functions,
i. A function isVowel that takes in a character and returns true if it is a vowel and false otherwise
ii. A function that request from the user to enter in a sequence of characters, and outputs the number of vowels enetered.
iii. A function that reads 3 test scores from 5 different students stored in a file and returns the highest average test score
2. An apartment complex contains possibly 60 apartments, rented out at possibly $500, when the apartment is at this rent price, it is fully occupied. Whenever there is an increase in the rent, possibly by $50, one renter moves out, reducing the occupied units by 1. The apartment complex spends $25 dollars to maintain each occupied unit. How many apartments should be rented to yield maximum profit for the complex. (Profit is calculated by subtracting the rent made from all occupied units from the cost it takes to maintain them).
Your program should input from the main the
Initial number of apartments the complex has
The rent price that has every apartment occupied
Your program should input from the function
The increase in rent that results in an unoccupied apartment
The amount it takes to maintain each occupied apartment
Your program should contain just one function where all calculations are done and output in the main the number of occupied apartments, it takes to yield maximum profit along with the value of the profit.
3) Write a program that contains the following functions (There are 25 numbers contained in a file)
A function to;
Determine and output the amount of even numbers
Determine and output the amount of odd numbers
Determine and output the amount of positive numbers
Determine and output the amount of negative numbers
Determine and output the number of zeros
Determine and output the sum of all 25 numbers
Use appropriate function calls in the main function. (Note: Negative numbers can also be odd and even)
Create the file and use the following numbers
0 2 -12 15 0 -7 -1 28 123 14 -863 17
11 -189 0 1283 290 -120 151 -63 13 230 0 -77 -2