Question: Specification Your program should work according to the following specification: It should first output What is your name? to the console. It should then read

 Specification Your program should work according to the following specification: It

Specification Your program should work according to the following specification: It should first output "What is your name?" to the console. It should then read a name from the console. It should then output "Hello," followed by the name, in upper case, to the console. Procedure All the code in this lab is in the main method of the myClass class. 1. Output "What is your name?"to the console. 2. Create a new Scanner object using the System.in stream. 3. Get the next line of input from the user and store it in a variable called. 4. Output "Hello, "followed by the input variable, converted to upper case, to the console. package eecs 1021; import java.util.Locale; import java.util.Scanner; public class myClass { public static void main(String[] args) { }

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!