My prof added to the assignment in the book. I can\'t figure out 1. or 2.! I got
ID: 3531589 • Letter: M
Question
My prof added to the assignment in the book. I can't figure out 1. or 2.! I got the getDiscountPrice() method to work, but i do not understand how or why we would assign "double amount" as a parameter. I wander if his "amount" = my "purchase"? I am so confused! I don't even know where to start with #2! This is the assignment:- Chapter 09- Programming challenge 8: Person and Customer Classes
A retail store has a preferred customer plan where customers can earn discounts on their purchases. The amount of a customer
Explanation / Answer
double is used because the amount can be in decimal
amount=my purchase because to calculate the discount
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.