Project 16: Finding the Foci of an Ellipse

Example 1:

Example 2:

Project 16: Variables 'h', 'k', 'a', 'b' have been initialized.  

h is the x-coordinate of the center of the ellipse (1 for both examples)

k is the y-coordinate of the center of the ellipse (-2 for the first example and 1 for the second example)

a is the "horizontal radius" of the ellipse (2 for the first example and 4 for the second example)

b is the "vertical radius" of the ellipse (4 for the first example and 2 for the second example)

Task: Appropriately initialize the values of 'fociX1', 'fociY1', 'fociX2', 'fociY2'.  These variables represent the coordinates for the foci of the ellipse.  

Note: foci1 should either be below (smaller y-coordinate) or the left (smaller x-coordinate) of foci2.  This is shown in the examples above.

**If your code works for 5 test cases in a row, you can enter your e-mail address.