Hi, I have this program as an assignment. It compiles and runs but is does not show the output for the title first name and last name. can someone help? if not please direct me to the appropriate help section. Thanks
Program employee_deductions;
{This algorithm prompts the user to input the Employee ID, title, first name,
last name, salary and number of dependents, then calculates the NIC deductions, paye, medical insurance,
total deductions, net pay of each employee and outputs their title, first name, last name and net pay.}
const
flat_rate = 50;
Var
employeeid: string;
title: string;
firstname: string;
lastname: string;
salary: real;
dependents: integer;
med_insurance: real;
nic_ded: real;
tot_deduction: real;
netpay: real;
paye: real;
Begin
Writeln('Please enter your employee ID title, first name, last name');
Readln(employeeid, title, firstname, lastname);
Writeln('please enter your salary and number of dependents');
Readln(salary, dependents);
While employeeid<>'end' do
Begin
If salary <= 5000 then
Nic_ded:= salary*0.05
Else
Nic_ded:=250;
If salary<10000 then
paye:=salary * 0.05
Else
paye:=salary * 0.1;
Med_insurance:=(dependents*20) + flat_rate;
tot_deduction:=med_insurance + Nic_ded + paye;
netpay:= salary - tot_deduction;
writeln;
writeln;
Writeln('Title: ');
Writeln('First name: ',firstname);
Writeln('Last name: ',lastname);
Writeln('Your netpay is: ',netpay:5:2);
Writeln('Please enter your employee ID, title, first name, last name');
Readln(employeeid, title, firstname, lastname);
Writeln('please enter your salary and number of dependents');
Readln(salary, dependents);
End;
End.