Posted on 1999-11-03
i would like to know how do i readln something, then check whether wat data type is it ??
for example, i asked the user to enter name and if numbers are entered, then the compiler will return to code screen and giving errors... i would like the program to detect wat kind of data type is accepted and then tell the use to enter the correct data type.
how do i, by using pascal, somehow(if it's possible) from DOS(if using bios) or any other way .. to have a real-time time and date in my program whenever i execute the program . it shows the actual current time.
i'm currently assigned to code a library system. i'm kinda stuck at the borrow/return part. there's this condition where is the book it overdue in 14 day, a fine will be produced. my date format would be day/month/year = 03/11/1999 .. i do not know how to make the program to calculate the fine if the date is around 16+ because if date of 16 onwards (plus 14 for overdue) will become december dates .. and also i must make this compatible to every all the months. i hope u guys get what i mean. i may be confusing explaining all these. but it's not easy for me to explain too ..
and lasty, as with the library system program, i have three external file which is the member.dat, booklist.dat and inout.dat . inout.dat shows the records of books borrowed,by whom, date borrowed/return. my problem is that when a book is borrowed from the booklist, if another member would like to borrow the same book... how do i check for the availability of the book? i had a suggestion from a friend who told me to use a marker. i need more alternatives..