Question: ackage com.techelevator; public class Exercise 0 5 _ AcceptPackage { / * Scamper Shipping Company specializes in small, local deliveries. The problems below ask you
ackage com.techelevator;
public class ExerciseAcceptPackage
Scamper Shipping Company specializes in small, local deliveries.
The problems below ask you to implement logic if they can accept a package for delivery.
Note: all weights are in pounds, and all dimensions are in inches.
You can use these constants in your solutions.
private final int MAXWEIGHTPOUNDS ;
private final int MAXCUBICINCHES ;
private final int MAXDIMENSIONINCHES ;
Scamper Shipping accepts packages as long as they are pounds or less.
Implement the logic to determine if Scamper Shipping accepts a package based on the weight provided.
Examples:
acceptPackage true
acceptPackage true
acceptPackage false
public boolean acceptPackageint weightPounds
if acceptPackageweightPoundsMAXWEIGHTPOUNDS
return true;
else
return false;
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
