Please enable JavaScript to use CodeHS

Demos

determineGenotype Function


##Complete the `determineGenotype` function to print each genotype. Print the genotypes in each of the four boxes by combining the letter on top (given by allele1) with the letter on the left (given by allele2). The function is already being called, with the following numbers being given to the `determineGenotype` function as the parameters `first` and `second`: - 0,0 - 0,1 - 1,0 - 1,1 *Hint!: These parameter values are being used to index the allele strings! Make sure that the allele given by allele1 stays blue and the allele given by allele2 stays red!

Finalize Punnett Square Generator


##Add more information around your percentage value to let the user know what this number is describing. You can be creative with how you display the information, but if you want your final generator to match the example, you can use the following values: - Top line of information: Location (0, -130), font size 15 - Percentage value: Location (0, -180) Once Tracy given all information, you may want to move her so she is not in the way of your information. Figure out how to send her to the bottom left corner at the end of the program!