Question: Java Help: Write a method named isEven with the following header: public static boolean isEven(int num). The method returns true if the number is even,
Java Help:
Write a method named isEven with the following header: public static boolean isEven(int num). The method returns true if the number is even, otherwise, it returns false. For example, isEven(10) returns true. isEven(9) returns false. d. A bank charges $10 per month plus the following check fees for a checking account: $0.10 each for 1-19 checks $0.08 each for 20-39 checks $0.06 each for 40-59 checks $0.04 each for 60 or more checks (Note that the same fee is charged for all checks. If the customer writes 21 checks, all 21 checks are billed at the $0.08 rate.) The bank also charges an additional $15 if the balance of the account falls below $400 (after applying the $10 fee but before any check fees are applied). Write a method named getFees with the heading: public static double getFees (double balance, int checks). The method accepts the balance and the number of checks. The method returns a double value representing the total amount that will be charged in fees for this month. If the balance or the number of checks is negative return -999.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
