Assignemnt #49 and GenderGame Code /// Name: Yordan Rashkov /// Period: 7 /// Program Name: GenderGame /// File Name: GenderGame.java /// Date Finished: 11/18/2015 import java.util.Scanner; public class GenderGame { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); String gender, First, Last, input; int Age; System.out.println(" What is your gender (M or F): "); gender = keyboard.next(); System.out.println(" First Name: "); First = keyboard.next(); System.out.println(" Last Name: "); Last = keyboard.next(); System.out.println(" Age: "); Age = keyboard.nextInt(); if (Age >= 21) System.out.println( "Are you married, " + First + " (input y or n)? "); input = keyboard.nextLine(); if (Age >= 21 && gender.equals("M")) System.out.print(" Then I shall call you Mr. " + Last + " "); else if (Age >= 21 && gender.equals("F")) System.out.print(" Then I shall call you Mrs. " + Last + " "); else if (Age >= 16 && Age <= 18) System.out.print(" Then I shall call you " + First + " " + Last + " "); } }