Question: Question 1 : Draw a playing card ( 2 5 marks ) a ) For this question, you will build six helper functions and one

Question 1: Draw a playing card (25 marks)
a) For this question, you will build six helper functions and one main function that must work together to draw a playing card of any suit from ranks Ace to Nine. As you write your program, test each function individually by calling it with different function calls. Only move on to the next function once you are certain that your current function works. Remember, every line of code written should be inside of a function. Here are the criteria:
Your program "
L5Q1initials.py" must start with a commented academic integrity pledge, ID Box, and program purpose. EACH of the six helper functions as well as the main function must state its purpose in comments. Documentation matters?
Only Python syntax taught in lecture and/or lab is permitted in lab submissions.
Here are the function specifications:
Helper function: draw_top()
The first helper function has been provided for you. Copy this function into your program EXACTLY as written. The sereenshot provided shows one function call using this function. Try calling it with other function calls so you are sure how it works.
Purpose: Draw the top border of the card as well as
& the rank in the top left corner
def draw_top{rank}:
print{""+p**1""}
print{"|" torank +6*"""1"?
Helper function: draw_symool is
draw_symbols {num, symbol}:
This function will draw the number of symbols indicated (between zero to three) on one line. The symbols will be space separated and appear centered within the edge borders. There MUST always be nine characters per line, counting symbols, spaces, and edges ("I"). Refer to the screenshot for examples.
NOTE: The table below shows the Unicode string for each French card suit.
\table[[Name,Unicode,Symbol],[Club,'u2663",],[Diamond,'u2666',],[Heart,'u2665',],[Spade,'u2660",]]
1
 Question 1: Draw a playing card (25 marks) a) For this

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!