Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that asks the user to enter a message and a box character and prints the message in the box using the given

Write a program that asks the user to enter a message and a box character and prints the message in the box using the given box character. Print it in exactly the same style used in the examples.
image text in transcribed
image text in transcribed
Make sure your box has exactly the same format as shown. Note that there is one space before the message and one space after the message. Assume the user enters a single character for the box character. Exercise 2 [20 marks] Write a program that asks the user to enter a message and a box character and prints the message in the box using the given box character. Print it in exactly the same style used in the examples. For example: ahat do you want your sign to say? Code Carefu17y ahat character do you want for the box? I 111111!!111111111 I Code Carefu11y I 1111111111111111

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

Students also viewed these Databases questions