Question: ; Below is a function design in Python from CPSC 1 0 3 . Please translate ; ; this function design to BSL and use
; Below is a function design in Python from CPSC Please translate
; ; this function design to BSL and use a comment to label every artefact
;; that the recipe requires. You should label the signature, purpose,
;; stub, examplestests template tag, and function body. Do not delete
;; the stub and template instead, comment them out.
i;
; @typecheck
; def pixelsize: int, colour: str Image:
Return a pixel of the given size and colour:
unin
# return square "solid", "white" #body of stub
# return size colour # template pased on Atomic NonDistinct
return squaresize "solid", colour
;# Begin testing
istarttesting
;
# Examples and tests for pixel
; expectpixel "blue" square "solid", "blue"
;expectpixel "green" square "solid", "green"
;
;# Show testing summary
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
