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
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount! Use Discount Code “Newclient” for a 15% Discount!NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.
The post c-simple-programming appeared first on Essay Fount.
What Students Are Saying About Us.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."