The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Urgent Help Please :)

Hey guys, I hope you guys can increase the efficiency of how I have coded this and hopefully teach me along the way. The task require is as follows:

A local primary school would like to have the following systems to be developed:

1. a system that can assist students to practise identifying the 5 vowels in English. The system must be able to provide the user with feedbacks and level of achievement.
2. a system that can assist students to practise how many days are there in each of the 12 months of a year, take into consideration of leap year.
3. a system to record and automatically track records set during a school carnival, so that a list of new records broken can be printed out at the end of the carnival.

I have managed to create a long, basic algorithm but in the marking key, the teacher requires a code and algorithm that is short and efficient. (IPO) I am having alot of trouble trying to create the code itself. But I have a clear, logical and short flowing algorithm then I should be able to pick up some marks. As I believe, the actual coding is only a small percentage of the total mark, but the logical behind is worth quite a lot.

Anyway here is my attempt at number 1 and 2 (It is long and draining, I know)

Display “How many days are there in January? :”
IF input == JanDays
THEN display “Correct! There are 31 Days in January!”
ELSE display “Incorrect! There are 31 Days in January”
ENDIF

Display “How many days are there in February? :”
IF input == FebDays or FebDaysLeap
THEN display “Correct! There are 28 Days in February & 29 in a leap year!”
ELSE display “Incorrect! There are 28/29 Days in February.”
ENDIF
Display “How many days are there in March? :”
IF input == MarDays
THEN display “Correct! There are 31 Days in March!”
ELSE display “Incorrect! There are 31 Days in March”
ENDIF

Display “How many days are there in April? :”
IF input == AprDays
THEN display “Correct! There are 31 Days in April!”
ELSE display “Incorrect! There are 31 Days in April”
ENDIF

Display “How many days are there in May? :”
IF input == MayDays
THEN display “Correct! There are 31 Days in May!”
ELSE display “Incorrect! There are 31 Days in May”
ENDIF

Display “How many days are there in June? :”
IF input == JunDays
THEN display “Correct! There are 30 Days in June!”
ELSE display “Incorrect! There are 30 days!”
ENDIF

Display “How many days are there in July? :”
IF input == JulDays
THEN display “Correct! There are 31 Days in July!”
ELSE display “Incorrect! There are 31 days!”
ENDIF

Display “How many days are there in August? :”
IF input == AugDays
THEN display “Correct! There are 31 Days in August!”
ELSE display “Incorrect! There are 31 days in August”
ENDIF

Display “How many Days are there in September? :”
IF input == SeptDays
THEN display “Correct! There are 30 Days in September!”
ELSE display “Incorrect! There are 30 days in August”
ENDIF

Display “How many Days are there in October? :”
IF input == OctDays
THEN display “Correct! There are 31 Days in October!”
ELSE display “Incorrect! There are 31 Days in October”
ENDIF

Display “How many Days are there in November?”
IF input == NovDays
THEN display “Correct! There are 30 Days in November!”
ELSE display “Incorrect! There are 30 Days in November”
ENDIF

Display “How many Days are there in December?”
IF input == DecDays
THEN display “Correct! There are 31 Days in December!”
ELSE display “Incorrect! There are 31 Days in December”
ENDIF

I haven't tried the last one with the lap time because I have no idea how. If anyone can help me out or give me some guidance I will be very grateful.