Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Invalid Variable Reference?
First...I don't know what the error means but...could someone please offer me a hand as to why the error is there and how I can get rid of it to finish this program. Remember, this is just a fragment so far...
UserAccount : String;
PriorityCode, NumberCustomer : Integer;
UseHours, HourCharge, AveCharge, PriorityCharge, TotalCharge : Real;
Writeln(' Apex Computer Service');
Writeln(' Account Charge');
Writeln(' --------- --------');
Writeln(' Please Input Your User Account Number: ');
Writeln(' Please Input Your Priority Code: ');
Writeln(' Please Input Your Hours of Usage: ');
WHILE UserAccount <> 'xxxxx' DO
IF (UseHours > 15.00) THEN
HourCharge := (225.00 + (15.00 * UseHours))
ELSE (UseHours > 5.00) AND (UseHours <= 15.00)
HourCharge := (100.00 + (25.00 * UseHours))
HourCharge := 100.00;