E1

Write a program and give it a meaningful name as per the recommended convention and create three methods and invoke them like so:

  • The main method takes in one program argument and displays "Welcome " + name of the person invoking the program sent is as program argument.

  • Main method then invokes the method with the name displayFirstLessonTips In this method print out 1 or 2 sentences of what tips you would provide to a person trying to learn this lesson.

  • diplayFirstLessonTips will then invoke another method called sayGoodbye which will print out "Good bye" + name.
    Note: I have not taught you how to send the program argument received in the main method to other methods yet. Can you do that?

results matching ""

    No results matching ""