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)

Number 1
char a-A , e-E , i-I , o-O , u-U
Prompt the user for a vowel
(MAXI_ATTEMPTS = 10)
Increment count by 1

IF vowel == a||A THEN
display “Correct”
ELSE
IF input == e||E THEN
display “Correct”
ELSE
IF input== i ||I THEN
display “Correct!”
ELSE
IF input==o||O THEN
display “Correct!”
ELSE
IF input== u||U THEN
display “Correct!”
ELSE
IF input!= a,e,i,o,u
display “Sorry, you are incorrect”
average = char/count
display “ Total number of letters in the alphabet” + char
display “Your score:” + MAX_ATTEMPT|| Correct
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
END
Number 2
SET JanDays ← 31, FebDays ← 28, FebDaysLeap ← 29, MarDays ← 31, AprDays ← 31,
MayDays ← 31, JunDays ← 30, JulDays ← 31, AugDays ← 31 , SepDays ← 30, OctDays ← 31, NovDays ←30, DecDays ← 31

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.

Thanks alot.