Pascal
Pascal is an influential imperative and procedural programming language, intended to encourage good programming practices using so called structured programming and data structuring.
Application
Business
Remove
Platform
Any
License
Any
Sry I posted the same thing more than once but the website jammed for some time
I need to Make this program work and I do not even know where to start can someone please help my write this code?
Position in race:( 1st = 6points, 2nd =4points, 3rd =3points, 4th=2points...
What compiler are you using ? The game, what is all about ? Explain what you're trying to achieve, time permitting will put ya on the right track.
EDIT: Ignore post, seems Carl addressed these issues in the time I was away from my PC.
Haven't done Pascal in a few years so forgive my ignorance. First, is this line:...
Hello ATEX
Thanks for the tip. I'll try to find FP documents and look them over.
As I progress,I'm generating a lot of small trial and demo p'grams.
They're really basic noob stuff (as you...
ATEX
Okay. Thankyou.
Front one's
Later: yeah,timers all over the place. need more on line - less real world.
: Hello some more.
: I need to use a timer to get out of a loop. Keypressed should
: set timer back to 0. Loop should exit after a second or so of no
: user action. I've done it before in...
1 then begin
{*****************}
writeln('Cube root= ',exp(ln(n)/3):5:5);readln;
{*****************}
end;
until n=0;
end.
Hi all this is my first post.
I'm learning pascal and I'm now a Senior Secondary 5 student.
I'm not an advanced pascal programmer, everyone please tolerate if I asked stupid question.
So the...
: I am trying to calculate the amount of years between a date of birth
: and todays date. I have no idea where to start with it so any help
: at all would be greatly appreciated.
:
Use the...
: For a computing project in school, I'm doing a rental store in which
: I'm trying to implement a date system to show an item is overdue. Is
: there any way I can read the date from my computer...
program guess_the_number;
uses windows;
const max_range=1000; { =0) and (bb then writeln('Too small...');
end else if ((b>=0) and (b
0) and (b b
then Writeln ('Too big...') ;
End else If ((a > 0) and (b
We were given the sample output for the question:
- OUTPUT -
Please enter your Octal number: 416
Octal 416 is equal to Decimal 270
- END OUTPUT -
Do I need to use array?
I was able...
: this time I would like to ask how to extract the time and the date
: into an array?
Use the unpacktime procedure from the Dos unit, see TP's hep for more info.
Time permitting will go through your code and see what can I come up with...
0 then dec(_timer_);
inc(_timer_);
inline($9c); {pushf 1 Sec}
_timer_:=0;
_timer_:=0;
_timer_:=0;
_timer_:=1092; { 1 min } { Preset values }
_timer_:=3276; { 3 min }...
This may seem like a stupid question but I want to allow the user to input something like s:char; s:=readkey; within a time limit.
If the user pressed something withing... lets say 10 seconds then...