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 103. 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, examples/tests, template tag, and function body. Do not delete
;; the stub and template instead, comment them out.
i;
; @typecheck
; def pixel(size: int, colour: str) Image:
Return a pixel of the given size and colour:
unin
# return square(1, "solid", "white") #body of stub
# return ....(size, colour) # template pased on Atomic Non-Distinct
return square(size, "solid", colour)
;# Begin testing
istart_testing()
;
# Examples and tests for pixel
; expect(pixel(20, "blue"), square(20, "solid", "blue"))
;expect(pixel(25, "green"), square(25, "solid", "green"))
;
;# Show testing summary
 ; Below is a function design in Python from CPSC 103.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!