The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Write a program that
Assume 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.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll