This is due in a few hours....this is the first java program I have been asked to write and I have no idea how to do it and I left my textbook in my friend's car.
I have to write a program that asks a user for their birth month, birth date, and birth year, and then tell them what day they will turn 100. This is what i have so far.
import java.util.Scanner; public class PrintBirthday { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String month; // birthday month double day; // birth day double year; //birth year double oldyear = 0; //year turning 100 System.out.print( "Enter the month you were born: "); month = stdIn.next(); System.out.print( "Enter the day you were born: "); day = stdIn.nextDouble(); System.out.print( "Enter the year you were born: "); year = stdIn.nextDouble(); oldyear += year+100; System.out.println("You will be 100 on " + month() + day() + oldyear(0)); } // end main } // end class PrintBirthday