CSE 114 Study Guide - Final Guide: Cash Advance, Tim Drake

9 views3 pages

Document Summary

You may complete any combination of these options for up to 25% extra credit on your nal project. We will automatically detect their presence (or absence) during our testing process, so there"s no need to submit "normal" and "extra credit" versions of your nal project: replacing spaces in some (or all) cases (up to 4 points) In the basic assignment, rewardscard users may redeem as many points as they have available, even if doing so would more than wipe out their current balance, leaving them with an overall credit. Modify the redeempoints() method in the rewardscard class to prevent this from happening. A cardholder may not redeem more points than will take the balance to 0. In other words, redeem points up to the amount requested or until the balance becomes 0, whichever comes rst. For example, suppose that the card"s current balance is . 50, and the user tries to redeem 2000 points (which he has available).