Assume that the user has two coupons: one for $15 off a purchase or $50 or more and the other that is 20% off any purchase. Ask the user to enter the purchase amount. Do the necessary calculations and display whether it will save him or her more money to user the first or the second coupon. For example, with a $100 purchase the user has to pay $85 if the first coupon is applied and $80 if the second coupon is applied (the second coupon saves more money). With a $30 purchase, the first coupon is not applicable, but with the second coupon the user has to pay $24, so the second is better. Finally, if the bill is $60, the user pays $45 with the first coupon and $48 with the second, so the first coupon saves more. Save your code as a text file or a Word document and submit here.
Posted on by admin
purchase
WHAT OUR CURRENT CUSTOMERS SAY

- Google

- Sitejabber

- Trustpilot
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!

Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.

Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.

Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!


Jermaine Byrant
Nicole Johnson



