WAP that makes a bill of selling goods. Also add discount rate given below: 1-100 = 10%101-500 = 20%501-1000=30%1001-5000=40%5001 above=50%
Answers
Answered by
0
Program in C++
#include<iostream>
using namespace std;
int main ()
{
double amount , discount ;
cout<<"Enter the amount : ";
cin>>amount;
if(amount >= 1 && amount <= 100)
{
discount = amount * (10.0 / 100.0);
}
else if(amount >= 101 && amount <= 500)
{
discount = amount * (20.0 / 100.0);
}
else if(amount >= 501 && amount <= 1000)
{
discount = amount * (30.0 / 100.0);
}
else if(amount >= 1001 && amount <= 5000)
{
discount = amount * (40.0 / 100.0);
}
else
{
discount = amount * (50.0 / 100.0);
}
amount = amount - discount;
cout<<"Discount = "<<discount<<endl;
cout<<"Amount after discount = "<<amount;
return 0;
}
Answered by
0
Answer:
Explanation:
What's is trade
Similar questions
Business Studies,
1 month ago
Science,
1 month ago
Math,
3 months ago
Economy,
9 months ago
English,
9 months ago