Question: code needed in java language not c++ 1) 3 truck company each pay a different amount to the truck driver to deliver products. - company
code needed in java language not c++
1) 3 truck company each pay a different amount to the truck driver to deliver products.
- company 1: $250/ day and $.25 per mile
- company 2: $359/ day
- comapny 3: $150/ day and $.30 per mile
the driver has to get oaid for a full day and can only work 12 hours max. At an average of 60 miles per hour, the driver can drive 660 miles per day.
Create a method public static double truckPay(int shipper, double miles) that computes the pay for the trucker depending on the shipper being used and the miles driven.
also, figure out the number of days the trucker will be paid for
HELP
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
