Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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 interaction

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

How do members envision the ideal team?

Answered: 1 week ago

Question

Has the team been empowered to prioritize the issues?

Answered: 1 week ago

Question

Have issues been prioritized?

Answered: 1 week ago