i want someone to do this assignment for me.. its only a question..
i need it in 6 hours..
3) Write a C++ program that calculates the average of measurements of Oak tree leaves.The measurements are in a text file called oakIn.txt. The file is provided to you on the blackboard. Follow the following requirements
1. Declare an array to hold the data in the main() program.
2. Write a function to read the data from the file into that array (ReadFile()) and call it from main(). The function should return TRUE if the file was successfully opened and read. It should return FALSE otherwise; i.e. if it encounters any problem.
3. Write a function called FindAve() that returns the average of the leaves’ measurements stored in the array. Call this function from main() and pass it the array that contains the data.
4.Within main(), after data is read in and average leave length is calculated, write code that opens an output file named oakOut.txt and writes into it a statement that includes the calculated leaves average length value; something like this
Average leaves length was calculated to be x.xxx.
the input file for this assignment..
CPP Phone Company John Doe 2016 12.4 23.1 34.6 32.4 52.3 21.5 23.7 45.3 23.4 51.3 45.2 23.7
Looking for solution of this Assignment?
WHY CHOOSE US?
We deliver quality original papers
|Our experts write quality original papers using academic databases.|
|We offer our clients multiple free revisions just to ensure you get what you want.|
|All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount|
|We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity|
|We will deliver your paper on time even on short notice or short deadline, overnight essay or even an urgent essay|