subject

FlagInitials () Write the function flagInitials that draws your three initials (first name, middle name, last name) in maritime letter flags, using turtle graphics. For example, 2008 Turing Award winner Barbara Liskov would draw the flags associated with her initials BJL. (If you have multiple middle names, choose your favourite.)Maritime letter flags are used on ships to signal other ships. For a good drawing of each letter flag, see the Wikipedia entry on ‘International maritime signal flags’. Note that each flag is a square. Please draw a black border around each flag (1 pixel wide).You will use randomization to vary how you draw your flags. The bottom left corner of the first flag is drawn at a random point in the rectilinear square bounded by (-200,-200) and (0,0). Each flag is of the same width w, which is chosen randomly in (100,200). The gap between consecutive flags should be a random number between 1 and 10. Since these random numbers determine the size and position of the flags, each time you run the code you should see a slightly different drawing. The use of random size and position is my way of encouraging the use of variables over magic numbers. A statement like ‘forward(40)’ uses a magic number 40. A statement like ‘forward(w/2)’ where ‘w’ has a semantic meaning of width, is much better: it documents your thought, and it is easily generalized to different widths.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:30, keviongardner
The next button in the review section shows the next available comment. next slide with no comment. previous comment. edited comment.
Answers: 1
image
Computers and Technology, 23.06.2019 22:20, Izzyfizzy
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
image
Computers and Technology, 24.06.2019 08:20, bob4059
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
image
Computers and Technology, 24.06.2019 15:30, taylorpayne525p8qxky
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
Answers: 1
You know the right answer?
FlagInitials () Write the function flagInitials that draws your three initials (first name, middle n...

Questions in other subjects:

Konu
Social Studies, 05.10.2019 13:00