Examlex

Solved

Write a Paint Method to Draw Out an American Flag

question 4

Essay

Write a paint method to draw out an American flag. The flag will comprise a blue square in the upper left corner and 13 red and white stripes, starting with red, and alternating. 6 of the 13 stripes appear to the right of the blue square and the last 7 stripes appear beneath the blue square extending as far right as the other stripes. Use a for-loop to draw the stripes. Do not try to draw any stars in the blue square.


Definitions:

Asymmetric Carbons

Carbon atoms that are attached to four different groups, making them stereocenters leading to chiral molecules.

Cis-1,2-dimethylcyclopentane

A cyclopentane molecule with two methyl groups attached to adjacent carbon atoms in the same plane.

Trans-1,3-dimethylcyclopentane

A cyclopentane molecule with methyl groups at the 1 and 3 positions, oriented across from each other.

Diastereomers

Stereoisomers that are not mirror images of each other and have different physical properties.

Related Questions