Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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: 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:

Explanation / Answer

double is used because the amount can be in decimal

amount=my purchase because to calculate the discount

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote