Answer to Question #181314 in C++ for riccimae

Question #181314

Create a program that accept the cost of postage on a letter and compute the tax according to the following scale: 50 pesos below a 5% tax added to the cost of the mail, 51 pesos above a 7% is added to the cost of the mail and plus 10 pesos service charge if the customer desires special delivery


1
Expert's answer
2021-04-14T16:14:13-0400
#include <bits/stdc++.h>
using namespace std;


int main()
{
    float cost_postage;
    
    cout<<"Enter Cost of postage: ";
    cin>>cost_postage;
    
    if (cost_postage < 50)
    {
        cost_postage = cost_postage + (cost_postage * .05);
        cout<<cost_postage;
    }
    else if(cost_postage > 51)
    {
        cost_postage = cost_postage + (cost_postage * .07) + 10;
        cout<<cost_postage;
    }
    
    


    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS