Hi im currently using Delphi 6 at college and need to right a procedure which inputs a number of seconds from the user and then turns them into hours minutes and seconds!
Ive got so far and now im stuck. This is as far as ive got!
const secondsinminute = 60;
secondsinhour = 3600;
minutesinhour = 60;
var x, w, y, z :integer;
begin
write (Display, 'This procedure will ask you for a number of seconds');
getInt (x, 'Please enter a number of seconds:');
w:= x div daysinweek;
writeln (Display);
write (Display, 'Number of hours is:');
Ive got my variables ready and I know I have to use the div and mod commands.
CAN ANYONE PLEASE HELP ME
Thanks In advanc
Mark
Ive got so far and now im stuck. This is as far as ive got!
const secondsinminute = 60;
secondsinhour = 3600;
minutesinhour = 60;
var x, w, y, z :integer;
begin
write (Display, 'This procedure will ask you for a number of seconds');
getInt (x, 'Please enter a number of seconds:');
w:= x div daysinweek;
writeln (Display);
write (Display, 'Number of hours is:');
Ive got my variables ready and I know I have to use the div and mod commands.
CAN ANYONE PLEASE HELP ME
Thanks In advanc
Mark