ASCII Text Signature. Stage 2/4

Star quality

Report a typo

Description

Now, let’s make our program more versatile. In this stage, you will write a program that creates a name tag for unique first and last names.

Objectives

Your program should read first and last names from standard input and then output them in a frame. The name tag should contain the first and last name with a single space between them, a single space at the beginning, and another space at the end.

The frame should consist of asterisk symbols '*'. Remember about single spaces between the border of the tag and the personal name.

Examples

Example 1, when the user inputs Albert Einstein:

*******************
* Albert Einstein *
*******************

Example 1, when the user inputs Nikola Tesla:

****************
* Nikola Tesla *
****************
Write a program
package signature

fun main() {
println("Hello, World!")
}

Create a free account to access the full topic