C++ Homework to be done
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..
is
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
10 years ago
5
- i need help with asignment
- MGT 311 Final Exam
- Hello, I need assistance on an online microeconomic course. A hidden proxy is needed and it needs to reside the chosen...
- history article, writing a summary and comments http://legacy.fordham.edu/halsall/mod/1543xavier1.asp Reading this article in this website. Writing a 150words summary and 150 comments(your opinion after read)
- MAT200 Assignment: The Solution Due Week 10
- Discuss the importance of American industry in U.S. military success during Worl Discuss the importance of American industry in U.S. military success during World War II.
- HCS 531 Week 1 Individual Assignment Significant Health Care Event Paper
- mathlab 117
- Homework Exercise
- ACC 422 Week 4