## Garden Planting:

Create a program that uses original methods and control structures to solve this problem: The south side of the island gets better sunlight than the north side. Have a jeroo start on the north shore of the island, pick all the flowers that are planted in rows on the north side and replant them on the south side by the water.

Decide: you can plant the flowers in any configuration you like as long as they are arranged in rows on the south side of the island when your program is finished.

Plan FIRST!

Basic outline of program: High-level algorithm.

Some things to consider:

• The jeroo might start out on top of the first flower to be picked, or may need to travel along the north shore until the first flower is found
• You cannot tell the Jeroo to pick flowers that are not there.
• You don't know how many flowers will be in each row.
• You don't know how many rows there are. You don't know how long the island is.
• There are no nets on the island
• The original rows of flowers on the north side of the island will all be of equal length.
• All flowers in a row should be picked, including the first and last
• The rows of flowers might end at the water's edge or grass
• The flowers must all be replanted on the south side of the island,( it does not matter if the rows are uneven when they are replanted), but each flower must be planted in a square of its own, filling each row from the bottom up as completely as possible.

Methods you plan to use: (you MUST use at least 3)

Your program should work for any of the following islands (and any other island that fits the requirements):

The islands start out as illustrated above. When finished all flowers have been replanted on the South side of the island filling in each row from the bottom up..