Problem 1: Strings
Write a program and create the corresponding flowchart that will ask the user for the initials of the user’s first and last names and then output a greeting that says “Hello”, followed by the user’s initials and an exclamation mark. For example, if the user’s initials are J and D, then the output greeting would be: Hello J D!
Problem 2: Strings
Write a program and its corresponding flowchart that computes your initials from your full name and display them
Problem 3: Control Structure
Using for loop, write a Java program and its corresponding flowchart which displays all leap years from 1900 to 2100. A year is a leap year (and so contains a February 29) if it is divisible by 4. But if the year is also divisible by 100 then it is not a leap year, unless it is divisible by 400. This means that year such as 1992, 1996 are leap years because these years are divisible by 4and are not affected by the rest of the rule which applies to century years such as 1900 and 2000. Century years are not leap years except where they are a multiple of 400. Hence the years 1700, 1800, 1900 were not leap years and did not contain a date February 29. But the year 2000 was a leap year, the first such century leap year since 1600.
Problem Answer(s):
START
START
Problem 1: Strings (Flow Chart)
String nameInitials
String nameInitials
Get nameInitials
Get nameInitials
Display “Hello nameInitials!”
Display
“Hello nameInitials!”
END
END
Problem 1: Strings (Code) import java.util.*; public class problem_1_Strings { public static void main (String[] args){ // Create a Scanner Scanner input = new Scanner(System.in); // Ask the user to input His/Her Initials System.out.print("Enter your Name's Initials: "); String nameInitials = input.nextLine(); //