Question: 2.23 LAB: Welcome message Write a program that takes a first name as the input, and outputs a welcome message to that name. Ex: If

 2.23 LAB: Welcome message Write a program that takes a first

2.23 LAB: Welcome message 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: Hello Pat, and welcome to CS Online! 26201.17349367 LAB ACTIVITY 2.23.1: LAB: Welcome message 0/10 LabProgram.java Load default template. 1 import java.util.Scanner; 2 3 public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); String userName; 7 userName = scor.next(); 9 10 /* Type your code here. / 11 12} 13 WRESOWN Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box Enter program input (optional) If your code requires input values, provide them here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!