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 otherwiseii. 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 theInitial number of apartments the complex hasThe rent price that has every apartment occupiedYour program should input from the functionThe increase in rent that results in an unoccupied apartmentThe amount it takes to maintain each occupied apartmentYour 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 numbersDetermine and output the amount of odd numbersDetermine and output the amount of positive numbersDetermine and output the amount of negative numbersDetermine and output the number of zerosDetermine and output the sum of all 25 numbersUse appropriate function calls in the main function. (Note: Negative numbers can also be odd and even)Create the file and use the following numbers0 2 -12 15 0 -7 -1 28 123 14 -863 1711 -189 0 1283 290 -120 151 -63 13 230 0 -77 -2
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more