- My gray images keep saving in the project directory instead of in the file where the original images are.
By default, your images will save to the project directory. If you want to save them in the same folder as the original there are a few options. Assume
grayFileName
is aString
that is the name of the original image with “gray-” added.- Type the full path of wherever you want to save it e.g.
gray.setFileName(“Users/elizabeth/Desktop/pictures” + “/” + grayFileName)
- Use
File.getParentFile()
:gray.setFileName(f.getParentFile() + “/” + grayFileName)
- Type the full path of wherever you want to save it e.g.
- I am finding the wrong number of genes / I think I found a gene that isn’t mentioned as a found gene in the programming exercise.
Make sure you are following the algorithm exactly as described in the programming exercises. This means genes should not overlap, and for each start codon you should only check the first occurrence of each stop codon. Errors are likely to be in the
.findStopIndex()
or.StoreAll()
methods. Pay attention to how you update the search location depending on what is found. - For the project on baby names, what does it mean by number of unique names?
The number of unique girls/boys names means the number of distinct girls/boys names in the file. For example, in a file with 100 girls named “Sophia”, 150 girls named “Emma”, 100 boys named “Jacob”, and 200 boys named “William”, there are 2 unique girls’ names and 2 unique boys’ names.
- For the project on baby names, what does it mean by the name with the highest rank?
Rank 1 is the highest rank and corresponds to the name with the most births that year.