Home / Expert Answers / Computer Science / cmpt-101-lab-5-assignment-specifications-masimum-25-marist-on-it-draw-a-letter-jt-25-marks-fo-pa123

(Solved): Cmpt 101 Lab 5 - Assignment Specifications Masimum: 25 marist on It Draw a letter +Jt (25 marks) Fo ...




Cmpt 101
Lab 5 - Assignment Specifications
Masimum: 25 marist
on It Draw a letter \( { }^{+} \mathrm{J}^{t} \) (25 marks)
For
draw_bottom(symbol, amt_symbols):
This function will draw one space followed by the amount of symbols indicated using the sym
Cmpt 101 Lab 5 - Assignment Specifications Masimum: 25 marist on It Draw a letter (25 marks) For this question, you will build five helper functions and one main function that must work together to draw a letter ' J. 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 "L5Qlimirials.py" must start with a commented academuc integrity pledge, ID Box, and program purpose. EACH of the frve helper functions as well as. the main function must state its purpose in comments. Documentation matters! - Here are the function specificetions: 1) Helper function: draw edges 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 one 'symbig, on either side of the Iine leaving (antar) spagos between the 'symbol'g def draw edgesisymboi, ant ): 2) Helper function: draw top draw_tof (symbol, ant _ymbols): This function will draw one blank line and then a line of consisting of the amount of symbols indicated using the symbol provided. Refer to the screenshot for details. 3) Helper function: column ¿raw column (amt spaces, symbol, arrt rows): This function will draw one symbol on each of the amount of rows indicated. Each symbol will be indented over by the amount of spaces indicated. Refer to the screenshot for details. draw_bottom(symbol, amt_symbols): This function will draw one space followed by the amount of symbols indicated using the symbol p>> draw_bottom ('+', 5) provided all on the same line. Refer to the sereenshot for details. 5) Helper function: get size get size (): This function will prompt the user for an odd integer 5 or greater and error check the input to ensure it is. valid before retuming it. Refer to the screenshot for details. 6) Main function: draw_J (must call ALL helper functions) draw_J (symbo 1): The main function must call get gi ge to obtain the size and call draw_edges, draw_top, drawe column, and draw bottom appropriately to draw a 'J' using the information given. This function should not have any print statements at all. The sample output proyided shows you two sample runs. Your output should be similar, but reflect the symbol given and size provided when tested. b) Save your program as "L.SQ1initials.py" replacing initials with your actual initials. e) Submit your program clectronically for marking (unless otherwise instructed).


We have an Answer from Expert

View Expert Answer

Expert Answer


First step is here belowKHere is your program to draw letter 'H' using any symbol given as input.Code to copy # Purpose: Draw one 'symbol' on either e
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe