Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program which prompts a user to enter his first name. Then it greets the

ID: 3791707 • Letter: W

Question

Write a program which prompts a user to enter his first name. Then it greets the user in this format: Hello first name how are you? For instance, if the user enters his name as John, the greeting would be Hello John how are you? Write a program which asks the user's first and greets as in 08 but the greeting is boxed with the at @ characters: Here John is an example. You program should be able to greet for any entered name. Write a program which asks the user's name and greets the user in this format: where each word is separated by 4 characters which are a space, @, @, and a space characters. Your program must work for any given name.

Explanation / Answer

Ans 8) import java.io.*;

import java.util.*;

class Program

{

public static void main(String[] ar)

{

System.out.println("Enter your first name: ");

  Scanner user_input=new Scanner(System.in);

changeNameFormat();

System.out.println(Hello + ", " + firstName + " " + how are you?);

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote