Back
Close

Angry bus driver

Statement

 Goal

Mr. Michel is a very angry bus driver.
Yesterday, offenders broke his sign that displays the next stops.
Luckily, Mr. Michel counts on you to program him a new one.
Input
A string of character M
For the size of the string, display pretty stars left to right at the top and bottom.
Output
***********
* London *
***********
Constraints
Leave 3 spaces on each side (left and right) and put in line if there are line breaks.
Example
Input
London
Output
**************
*   London   *
**************

Tags
ListsOptimizationAscii Art

Difficulty
Easy

Test cases
Test 1 Test
Input
London
Output
************** * London * **************

Validator 1 Validator
Input
Notlondon
Output
***************** * Notlondon * *****************

Test 2 Test
Input
Manchester-city
Output
*********************** * Manchester-city * ***********************

Validator 2 Validator
Input
Kerdosel-Levieux
Output
************************ * Kerdosel-Levieux * ************************

Test 3 Test
Input
Next stop in 15 minutes
Output
******************************** * Next stop in 15 minutes * ********************************

Validator 3 Validator
Input
Next stop in 115 minutes
Output
********************************* * Next stop in 115 minutes * *********************************

Test 4 Test
Input
Attention A La Marche
Output
***************************** * Attention A La Marche * *****************************

Validator 4 Validator
Input
Attention A La Marche
Output
***************************** * Attention A La Marche * *****************************

Solution language

Solution

Stub generator input