COMP2243 - Programming and Problem Solving

Syllabus Software Installation Assignments Tests
Lectures and Labs
**Back to Full Menu**

Fundamentals HelloWorld.java Basics.java Payroll.java Cartons.java Time.java DollarAmount.java StringPractice.java PayrollGUI.java



Payroll Program


Description

The purpose of this program is to input the employee's information including name, hours worked, and hourly rate, then calculate the weekly pay and print the payroll report.

Associated Concepts:

String object

Input data from the keyboard

Output the result to the monitor

Algorithm:

Declare variables to store name, hours worked, hourly rate, and weekly pay

Read data values from the keyboard and store them into variables

Calculate the weekly pay based on the user input data

Print the payroll report

Source Code



Sample Run



Video