write a payroll program that promt a user to enter his name,hourly rate,working hours in the week and display the amount earning by each employee in Rand.user is not allowed to enter any negative value for hourly rate and working hours.

3 answers

We would better help you if you could specify the help you need is with syntax or logic.

The best route is to post what you already have written if you have already started (pseudocode or code).

If you have not yet started, you need to tell us what you have learned so far. There are many ways to write the same program using different tools.
Program payroll (input,output);
{constants declaration}
const
Basic pay=800
{variable declaration}
var
hours:integers;
Pay per day:integer;
Basic pay:integer;
allowances:integer;
deduction:integer;
a,b,c,d:integer;
Gross pay:integer;
Net pay:integer;

{program block}
begin
Writeln('enter hours worked,);
Readln(hours worked);
Writeln('enter a');
readln(a);
................................................................
Payroll