Solved

I have a problem with compiling a pascal assignment

Posted on 2000-02-19
3
190 Views
Last Modified: 2010-04-04
I have a problem with compiling a pascal assignment . If anyone is interested in helping they can e-mail at hpool@pdq.net
0
Comment
Question by:Hpool_12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 2538977
either paste the offending file here or send to:
BorgsAssimilate@Aol.Com and i take a look.

what are the errors etc .. ?
0
 
LVL 17

Expert Comment

by:inthe
ID: 2539102
hi,
this is actually the delphi area not pascal but i had a look and you program should look more like below:
(it compiles fine in turbo pascal 7)


PROGRAM Compute_Cost;

Uses
     Crt;
   Var  Cost, Length, Width, Total_Cost :real;

Procedure GetData ;
Begin
  Clrscr;
  Writeln ('What is the room length in feet and press Enter');
  Readln(length);
  Writeln ('What is the room width in feet and press Enter');
  Readln(width);
  Writeln ('What is the carpet price/square yard and press Enter');
  Readln(Cost);
{some arbituary calculation this above is just pseudo code example}
  total_cost := ((cost * 2.4)*(length * width));    
  Writeln(total_cost);
END;

begin
getdata;
end.

you were missing begin , end. etc ..
and had declared some paramaters for the procedure where they werent really  needed as they were already declared as global anyway.
hope its what you need
 
(note youll need to change the calculating of result)

Regards Barry
0
 
LVL 17

Accepted Solution

by:
inthe earned 100 total points
ID: 2539513
³
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question