Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started