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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
*write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard).
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
question
Computers and Technology, 25.06.2019 06:50
A1-megabit computer memory chip contains many 27 ff capacitors. each capacitor has a plate area of 3.09 × 10−11 m 2 . determine the plate separation of such a capacitor (assume an empty parallel-plate configuration). the characteristic atomic diameter is 10−10 m = 1 ˚a, and the permittivity of a vacuum is 8.8542 × 10−12 c 2 /n · m2 . answer in units of ˚a.
Answers: 3
You know the right answer?
FlagInitials () Write the function flagInitials that draws your three initials (first name, middle n...
Questions
Questions on the website: 13722367