Homework 3
Frequently Asked Questions
Should we pass user input into the subroutines, or should the subroutines prompt for and read in user input themselves?
Either approach is acceptable
How do we handle spaces in company names when creating the text files?
Spaces in file names should not cause any problems. Please let me know if you believe they are.
Can our subroutines call other subroutines?
Yes, you should feel free to create as many subroutines as you feel are necessary and helpful. The only requirement is that a single subroutine be called to do the work for each menu option. Each subroutine may in turn call as many subroutines as you like, however.
What do we do if the text file for a company already exists?
You can simply overwrite the existing file. (A warning to this effect would be nice, but is not required.)
What qualifies as a multi-dimensional structure?
Any of the following:
- Array of arrays
- Array of hashes
- Hash of arrays
- Hash of hashes
- Any structure that has one of the above as a base (ex, hash of arrays of arrays, etc)
