Solved

I have a problem with compiling a pascal assignment

Posted on 2000-02-19
3
181 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
  • 3
3 Comments
 
LVL 17

Expert Comment

by:inthe
Comment Utility
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
Comment Utility
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
Comment Utility
³
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Delphi XE7 Rest Client 2 172
Splash screen too shortlived 11 112
TcomboBox uninverted item 3 44
Delphi OLE Error 8 82
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now