CO311: Introduction to Modern Programming II

Lab Practical #6: March 13, 2000

Please read the entire problem before jumping into the code!

Copy the file “floats.txt” from COMMON\practicals\p6 on the FTP site into your own folder. Write a program that will prompt the user for the name of a file. The user will type in the name of the copied file, and the program will read floating point numbers from that file into an array. The program will then do the following:

Use good programming methods, including separate functions where appropriate.

Submit the finished CPP file to the FTP site in its own folder called P6.

You will have 60 minutes to complete this program. Submit it at the end of that time even if you have not finished: you will get credit for everything that you do finish (and will probably not lose nearly as much as you fear for what you haven’t finished).