Java simple program
CS 181 Homework-2 Dr. Chetan Jaiswal Spring 2018
Q1. Based on the program done in the class, write a program in Java to find the day on a given
date. You must take input in MM/DD/YYYY format. For example, input to your program could
be 08/15/2002, your program needs to find what day would be on this date. (5 points)
Q2. Write a program in Java to find if a given 5 digit number is a palindrome or not? (5 points)
Q3. Write a program in Java that inputs five numbers and determines and prints the number of
negative numbers input, the number of positive numbers input and the number of zeros input. (5
points)
Q4. Use the web to determine the current world population and the annual world population
growth rate. Write an application in Java that inputs these values and then displays the estimated
world population after one, two, three, four and five years. (5 points)
Instructions:
What to submit: All Source code + print screen of the output.
When to submit: Midnight, Saturday Feb 18 2018.
Where to submit: Blackboard->Assignments
Format: One PDF containing all your solutions.