01 Jul C++ simple programming
Question Description
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
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.