Name: ______________________________________________________
Objective:
do while loops and file input
Instructions
- Create a new project called File Averages
- Create a form with a button and two labels
- When the user clicks the button, your program should do the following:
- Open a File Open form to get a file name
- Once the user has selected a file, display the file name in one of the two labels.
- The file you should use to test the program is in R:\Basic\data\scores.txt. The file contains a list of numbers. Your program will read the file one line at a time and calculate the average of the values in the file.
Extra Credit
Grading
| Feature |
Points |
Out of |
Notes |
| File retrieval |
|
2 |
|
| File input |
|
4 |
|
| Average calculation |
|
2 |
|
| Total |
|
8 |
|
Notes
Comments (0)
You don't have permission to comment on this page.