Question: In Java 1 1) copy center charges 15 cents per copy for the first 10 copies, 12 cents per copy for the next 100 copies,
In Java
1 1) copy center charges 15 cents per copy for the first 10 copies, 12 cents per copy for the next 100 copies, and 8 cents per copy after that. (Example: for 150 copies it's.15 10+.12 100 plus.08* 40 16.70.) Write a static method that returns the cost in cents for a given number of copies. (Since a static method does not use any instance variables, we don't need to worry here about what class the method is in.) public class AnyClass public static int findCopyCost(int numCopies) // TODO
Step by Step Solution
There are 3 Steps involved in it
To solve this problem we need to calculate the cost based on the number of copies wh... View full answer
Get step-by-step solutions from verified subject matter experts
