Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Make sure you dont use any string multiplication and any functions are not permitted. Problem: In this assignment, you will write a Python program that
Make sure you dont use any string multiplication and any functions are not permitted.
Problem: In this assignment, you will write a Python program that prints the banner character H made up of a number of , characters. The width and height of the character are accepted from the keyboard. The program prompts for these two values until width is divisible by 4 and height is divisible by 8. The dimensions of the various parts of the H are as below 1) The two vertical bars are identical in size and are aligned at the top rows. 2) The middle bar is centered vertically in the two vertical bars. 3) The vertical bars are height characters high. The vertical bars are width/4 characters wide. 4) 5) The width of the horizontal bar (including the portions from the two vertical bars) is width. 6) The height of the horizontal bar is height/4. The code must meet the following requirements 1) It must employ nested loops effectively 2) String multipliers (example: "A" * 4) cannot be used. 3) The only functions allowed are input(), range(), int(), and print) See the following interaction. Problem: In this assignment, you will write a Python program that prints the banner character H made up of a number of , characters. The width and height of the character are accepted from the keyboard. The program prompts for these two values until width is divisible by 4 and height is divisible by 8. The dimensions of the various parts of the H are as below 1) The two vertical bars are identical in size and are aligned at the top rows. 2) The middle bar is centered vertically in the two vertical bars. 3) The vertical bars are height characters high. The vertical bars are width/4 characters wide. 4) 5) The width of the horizontal bar (including the portions from the two vertical bars) is width. 6) The height of the horizontal bar is height/4. The code must meet the following requirements 1) It must employ nested loops effectively 2) String multipliers (example: "A" * 4) cannot be used. 3) The only functions allowed are input(), range(), int(), and print) See the following interactionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started