Students: Section 2.29 is a part of 2 assignments: Homework 3 | Chapter 2 Includes: zyLab No due date 2.29 LAB: Welcome message LAB ACTIVITY 2.29.1: LAB: Welcome message
(0)/(10)
◻
Write a program that takes a first name as the input, and outputs a welcome message to that name. Ex: If the input is: Pat the output is: Hey Pat! Welcome to zyBooks! Run History Tutorial LabProgram.java library >CS 142: Object-Oriented Programming I home >2.29: LAB: Welcome message zyBooks catalog Help/FAQ Anth alary variables Aarried-couple ables t integers 2.29 LAB: Welcome message for during LAB ACTIVITY 2.29.1: LAB: Welcome message
(0)/(10)
methods istics message dollars Write a program that takes a first name as the input, and outputs a welcome message to that name. Ex: If the input is: Pat the output is: Hey Pat! Welcome to zyBooks! Run History Tutorial LabProgram.java ethods public class LabProgram { sses public static void main(String[] args) { ement Scanner scnr = new Scanner( System.in); String userName; userName = scnr.next();