[code=Java]
I have to compute a program that calculates charges for several customers.
Tree removal $250.00 per tree
Tree trimming $40.00 per hour
Stump grinding $25.00 plus $2.00 per inch for each stump shose diameter exceeds ten minutes.
Example of the File
Sue Smith
7 6.5
8.0 25.0 12.5 14.0 15.0 15.0 20.0 10.0 -1
John Edward Doe
0 5.0
-1
George W Jones IV
0 0
13.5 8.5 10.5 -1
First line contains the name of the customer. Second line contains the number of trees to be removed followed by hours for tree trimming. Third line, if there are stumps, contains the diameters of the stumps terminated by -1. After the last customer is read and printed, the program should print the total revunue.
Example Output format
Customer: Sue Smith
Tree Removal: $3500.00
Tree Trimming: $1200.00
Stump Grinding: $525.00
Total: $5225.00
Customer: John Edward Doe
Tree Removal: $0.0
Tree Trimming: $500.00
Stump Grinding: $0.00
Total: $500.00
Total Revenue $5725.00