Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python program Objective: Practice using looping with functions and conditional execution Description: In this assignment you will use loops to repeatedly ask for user input

python program

image text in transcribed

Objective: Practice using looping with functions and conditional execution Description: In this assignment you will use loops to repeatedly ask for user input and then print a checkerboard pattern on user specifications Your program must meet the following requirements: 1. Include a multi-line comments at the top of the file with your name, PSID number, and the assignment number. 2. Your program should ask the user for the dimensions of a rectangle: height and width 3. Your program should ask the user for two different characters to use in printing the checkerboard pattern 4. It should use that information to call a function to print the checkerboard 5. Your program should prompt the user to continue or exit the program 6. Your program should employ a function to handle the printing and will need to pass four parameters to the function, the length, width, and two characters for printing Hint: Implement the rectangle first, using a user specified character, then work out how to make it a checkerboard Deadline: Wednesday, February 28, 2018, 11:59PM (try to finish in class) Example Output: The following is one possible run with example sets of inputs Please enter a width: 5 Please enter a height: 4 Please enter the first character: X Please enter the secondcharacter: O XoXOX XoXox Would you like to print another? (Y/N) N Good-Bye

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

Students also viewed these Databases questions