Hey guys, I really need help with this program I am to write out, I don't even know where to start I just can't get my head around files no matter how much I study it. My notes aren;t that great either. Apparently its pretty basic stuff but I'm literally clueless.
I was wondering if someone on here would be ever so kind and
help me out somewhat with this program I am to write. I will be
ever so grateful with any kind of help you may provide
Code:Write a program that will give the user the following menu options;
- Copy a file
Note: The program should be written using file & functions. Therefore if the user chooses option 1, a function called copyfile should be invoked. If the user chooses option 2, a function called averagewage should ne invoked. All the work involved in this program should be done in functions.
- Calculate average emplyee wage
- If the user chooses option 1, they should be prompted for the name of the file to copy from. The user should then be asked for the name of the file to copy to and when the operation is finished, a message should be displayed to the user.
- If the user chooses option2, they should be asked for the name of thewage file that they wish to read from(assume the wage file containing an indefinite number of integer values,) The total of all wages in the file should be maintained and the average calculated.
- If the user chooses an invalid menu option, an appropriate message should be displayed.