How to call text inputed by user to display with asterisks?

I am sorry if the question is vauge. I am literally stumped on this question and is very frustrating.

Here is the actual question:

Design a message display application.Allow users to enter their favorite sayings in a

method. Return the saying back to the Main( ) method. Call another method, sending

the saying. From that method, display the message surrounded by two lines of asterisks

Can someone please guide me in the right direction or show how I should code this? Thank you so much.

Update:

This is for C# BTW sorry for not adding that.

3 Answers

Relevance
  • 7 years ago

    You would probably create two functions

    //function 1

    Function GetSaying() as string{

    reads the user saying

    GetSaying= usersayingstr

    //call function 2

    DisplaySaying (GetSaying)

    }

    //function 2

    Function DisplaySaying(SayingStr){

    print ('****************/n');

    print (SayingStr);

    print ('****************');

    }

  • Anonymous
    7 years ago

    Print("******************************************");

    Print("my favorite saying");

    Print("******************************************");

Still have questions? Get your answers by asking now.