main()
 {
 
 double Amount,Discount,Netpayable;
  Amount=0;
  Discount=0;
  Netpayable=0;
 
  cout"please enter the amount of bill";
  cin>>Amount;
 
  if(Amount>5000)
  { 
   Discount=Amount*(15.0/100)
   netpayable=dmount-discount;
   cout"The rate of discount 15% is rupees";
   cout"The Netpayable amount in rupees";
   
 }
 else
 {
  Discount=Amount*(10.0/100)
  Netpayable=Amount-Discount;
  cout"The rate of discount 10% in rupees";
  cout"The Netpayable rupees";
 
 }
 }

Views: 31

Replies to This Discussion

A shopkeeper announces a package for customers that he will give 10% discount on all bills and
if the bill amount is greater than 5000 than a discount of 15%. Write a program that takes amount
of the bill from user and calculates the payable amount by applying the above discount criteria?

THANK U

You welcome

Good logic:)

Ali Khan (Admin) said:

RSS

Sponsored Links

Sponsored Links

© 2018   Created by Ali Khan (Admin).   Powered by

Badges  |  Report an Issue  |  Terms of Service