Thursday, March 08, 2018

Chapter 6 Homework Conditions and Test Results

Test 1
Enter yearly income: 15000
Enter the hourly rate: 70
Enter consulting time in minutes: 75

The billing amount is: 21.00

Test 2
Enter yearly income: 50000
Enter the hourly rate: 70
Enter consulting time in minutes: 20

The billing amount is: 0.00

Test 3
Enter yearly income: 50000
Enter the hourly rate: 70
Enter consulting time in minutes: 21

The billing amount is: 0.82

Test 4
Enter yearly income: 150000
Enter the hourly rate: 50
Enter consulting time in minutes: 180

The billing amount is: 93.33

Test 5
Enter yearly income: 35000
Enter the hourly rate: 25
Enter consulting time in minutes: 90

The billing amount is: 20.42

No comments: