Skip to main content

6.13) Exercise 13 - File Name Generator


Make a program that generates file names for storing your data.

For example, you might want a file name that looks like this:

Sample_Ilkley_10oct2013_site1.dat

The program should ask the user to enter a location, a date and a sample number and it will print out the file name.

Hint: You could join a list of strings.

Hint: All file names will end in ".dat".