You are on page 1of 2

Calculate Pay

Develop a program that calculates the amount to be paid to an employee who has been
hired on hourly rate basis. The program will get number of hours spent in a week and hourly
rate from the user and output the amount to be paid for that week.

Input(s) Processing Output(s)


Number of hours Total_wage=hours_worked*wage_per_hour Total_wage
worked.
(hours_worked)
Per hour wage
(wage_per_hour)

Pseudocode

BEGIN
INPUT

PROCESS

OUTPUT

END

C++ Code

int main()
{
// declare variables

// input

// process

// output
}

You might also like