java program for computing demographic information to give a output

Jun 20th, 2016
Studypool Tutor
Abraham Lincoln University
Price: $10 USD

Tutor description

Is a java code program for handling demographic information

Word Count: 409
Showing Page: 1/4
Running Head: JAVA PROGRAM ON DEMOGRAPHIC INFORMATION 1Java program on demographic informationNameInstitutionProfessorCourseDateJAVA PROGRAM ON DEMOGRAPHIC INFORMATION// Import each required Java classimport java.util.Scanner;/*** MY Survey*/public class winstoncomptonhw1a {public static void main(String[] args) {// Variables to hold valuesbyte year = 0;int month = 0;float latitude = 0.0f;float longitude = 0.0f;System.out.println("Welcome to My Survey");// Use the Scanner class to input data from Standard I/OScanner scannerIn = new Scanner(System.in);// Prompt the user to enter their Birth YearSystem.out.println("Enter your Birth Year (1900-2014):2000");year = scannerIn.nextByte();// Verify the Birth YearSystem.out.println("The following Year was entered " + year);//Prompt the user to enter their Birth MonthSystem.out.println("Enter your Birth month (1-12):8");// the nextInt() method scans the next int valuemonth = scannerIn.nextInt();// Verify the Birth month was enteredSystem.out.println("The following month was entered " + month);//Prompt the user to enter their day of BirthSystem.out.println("Enter the day of your birth (1-31):17");// th

Review from student

Studypool Student
" AMAZING as always! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1829 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors