I have a problem with compiling a pascal assignment

Posted on 2000-02-19
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
Question by:Hpool_12
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
LVL 17

Expert Comment

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

what are the errors etc .. ?
LVL 17

Expert Comment

ID: 2539102
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;

   Var  Cost, Length, Width, Total_Cost :real;

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


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
LVL 17

Accepted Solution

inthe earned 100 total points
ID: 2539513

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month5 days, 16 hours left to enroll

627 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