Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I don't understand what this project wants can I get some examples to get a better understanding please! Goal: This project is designed to make

I don't understand what this project wants can I get some examples to get a better understanding please! image text in transcribed
image text in transcribed
Goal: This project is designed to make sure that students feel comfortable writing a Python program, saving it to a file, and turning that file in for evaluation. Description: This program will print squares made out of printable chars. Each N-by-N square will be made entirely of the same char, although different squares may be made up of different chars and be of a different size. Functional Requirements: This program will be made up of exactly three user-defined functions: single_row (char, N) single_row takes two parameters: a string called "char", and an integer called n. The function will return a string that is the repetition of the char N times. Examples: single_row("$", 3) would return "%%%" single_row("$", 2) would return "$$" print_square (char,n) print_square takes two parameters: a string called "char", and an integer called "N". The function will print (not return) an N-by-N square made of the character specified by char.print_square does not return any value. print_square must use single_row to provide the rows that it will print. Examples: print_square("#", 2) would print Examples: print_square("#", 2) would print ## ## print_square("?", 1) would print 2 main() main takes no parameters and returns no values. main will cause the printing of 3 squares, of sizes 3, 2, and 5, respectively, using the characters, '@','#', and '*', respectively. There should be one blank line in-between each of the adjacent squares. main should use print_square to print the squares. Therefore, there should be 12 lines of output: @@@ @@@ @@@ # ## ***** The very last line of your submitted program should be a single call to the function main, like this: main() Cada Chula Deniramonte

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions