hi i need help to write two different functions

the first one is to displaysquareroots that asks the user for a number n, and displays the square roots of the number from 1 to n and to 3dp

so if the user enters 3 it displays

the square root of 1 is 1.000

the square root of 2 is 1.414

the square root of 3 is 1.732

the second one is to write a function peasinapod that asks the user for a number, and then draws that number of "peas" (green circles of radius 50) in a "pod" (graphics window of exactly the right size). E.g if the user enters 4, a graphics window of the size 400x100 should appear

and there is a third one write a numbered square function that has a parameter n and displays a "numbered" square of size n e.g a cqall numberedsquare(4) should result in

0 1 2 3

1 2 3 4

2 3 4 5

3 4 5 6

thank you

Editor's note:

moved to it's own thread