Roel De Nijs wrote:Can you explain using pseudo-code (or with short sentences) how you would solve this problem? You always start with thinking about the problem and how it could be solved, before you start coding.
For example:
Get today's dateOpen file (on failure, print "File could not be read."...
I've got all that. The only thing I don't know how to do is to compare the dates from the file with today's date. I have done the algorithm, but have no clue how to go about doing it. Any ideas?
in new div begin table
open file data.txt into data[]
read first item from data[0]
place in the first cell named item
read second item from data[1]
place in second cell named priority
read third item from data[2]
place in third cell named date
compare item data[2] to today's date
if data[2] is past, underline data[0], data[1], data[2]
if data[2] is today, bold data[0], data[1], data[2]
otherwise, echo data[0], data[1], data[2]
continue until all table is filled and eof is reached
in another div echo "Welcome Back!" in <h3>
beneath that echo today's date with day of week
in a third div echo Key in <h3> tag
beneath that list keys to priorities: 1 high, 2 low, 3 medium
end of program