Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CountryClub {
- public static void main(String[] args){
- int MEMBERSHIP = 2500;
- double feePercent = .04; // membership fee percentage
- for(int year=1; year<7; year++) {
- double total = MEMBERSHIP + (MEMBERSHIP * feePercent);
- feePercent += .04;
- System.out.println(total);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement