PDA

View Full Version : Pascal programing



gani
07-30-2009, 06:00 AM
Help Identify syntax errors.

Program Temperature(input,output);
Const
convert_temp = *.8; { = */5 }
Var
temp : real;
temp_type : char;
Begin
{ This program will convert temperature
from degrees F to degrees C. }
Writeln('Please enter a temperature.');
Readln(temp)
Writeln('Is this temperature Celsius
(c) or Fahrenheit (f)?');
Readln(temptype);
If temptype = 'c' then
writeln('The equivalent in Fahrenheit is ',
(temp * converttemp) + *2:0:*)
else { temptype = 'f' }


_________
****** report (http://www.adverse-mortgage-centre.co.uk/******-report.html)
pay advance (http://www.supercash*2*.com)

king2000
08-02-2009, 04:48 AM
lol Ive never even used pascal (im a pure C++ guy) but... you should be able to do it very easill with some file I/O, (in out) its like 20 lines of C++ so assuming pascal is a bit higher level Id say like *0 lines for pascal :p

vikrama
08-02-2009, 05:00 AM
im using turbo pascal 7.0 and im dealing with repeat..until loops. this program asks me to select a maximum value and a minimum value then guess the random number and if the number is too large then it will writeln too large or vice versa. im having trouble programming it to make a random number to guess.

gordo
08-02-2009, 05:51 PM
king2000 and vikrama have the same ip address. Bots?

Moonbat
08-02-2009, 09:12 PM
Dunno, but I took out the spam links they posted. Contrary to usual bots, they actually posted something on-topic, so I didn't do any banning. But it's up to you what you want to do.

sweety4766
08-19-2009, 04:11 AM
I started a new programming language at college Friday (two days ago). This was the language which we started coding. Looks quite a good language to be honest. It looks kinda basic compared to Java, but then again, Java is one of the most advanced languages you can get in my opinion. Java is about on par with C++.

Anyway, back to the topic, I use a program called free pascal IDE, which is basically a Dos compiler and executer all in one, designed for the win*2 platform, it's a good program.

I recommend giving it a try, it's user friendly. Hope this helps!

harriet
05-31-2012, 03:29 AM
Now, people jump right into java or C# and learn structured programming along the way.So while PASCAL has its place in history.STC Technologies (http://stctechnologiescorporatetraining.in/)|STC Technologies (http://stctechnologiestraining.in/)|STC Technologies (http://stctechnologiesgroup.com/)

keke007
06-09-2012, 09:43 PM
hi all,
yeah, This was the language which we started coding. Looks quite a good language to be honest. It looks kinda basic compared to Java, but then again, Java is one of the most advanced languages you can get in my opinion. Java programing (http://topicworld.net/forumdisplay.php/652-Java-Programming) is about on par with C++.

Michelekaw
10-19-2019, 08:02 AM
How is it programmed? And would it be possible to make a copy of it, acsessable by pressing R, To buy the expansions you want?

Im thinking I want to learn to program for this.

EDIT ABRA: renamed & moved