Mr. Vincent works in a door mat manufacturing company. One day, he designed a new door mat with the following specifications: • Mat size must be NXM. N is an odd natural number, and M is 3 times N.) •...


Computer Engineering lab


Mr. Vincent works in a door mat manufacturing company. One day, he designed a new door mat with the following<br>specifications:<br>• Mat size must be NXM. N is an odd natural number, and M is 3 times N.)<br>• The design should have WELCOME' written in the center.<br>• The design pattern should only use |.. and - characters.<br>Sample Designs<br>Size: 7 x 21<br>-------..<br>-------|..|..1---<br>---.|......|...<br>-WELCOME<br>----|..|..|..|..|.<br>-------|..I..|.<br>------<br>Size: 11 x 33<br>--1.<br>---.|..|..|.-<br>----.1..|..|.. |..1.-<br>------|....|..|......|.-<br>----|..|..I..|..|......|.-1.--<br>-WELCONE<br>1..1..1..|..|..I..I..|..|.--<br>--1..1..|..|..|..I...-<br>.1....J.....-<br>--|..|..|.-<br>Input Format<br>A single line containing the space separated values of N and M.<br>

Extracted text: Mr. Vincent works in a door mat manufacturing company. One day, he designed a new door mat with the following specifications: • Mat size must be NXM. N is an odd natural number, and M is 3 times N.) • The design should have WELCOME' written in the center. • The design pattern should only use |.. and - characters. Sample Designs Size: 7 x 21 -------.. -------|..|..1--- ---.|......|... -WELCOME ----|..|..|..|..|. -------|..I..|. ------ Size: 11 x 33 --1. ---.|..|..|.- ----.1..|..|.. |..1.- ------|....|..|......|.- ----|..|..I..|..|......|.-1.-- -WELCONE 1..1..1..|..|..I..I..|..|.-- --1..1..|..|..|..I...- .1....J.....- --|..|..|.- Input Format A single line containing the space separated values of N and M.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here