Write A Program Using Switch And If Statement To Compute The Net Amount To Be Paid.?

Purchase Discount
0 – 100 – –
101 – 200 5.0 %
201 – 300 7.5 %
above300 10.0 %
A cloth show room has announced the following discount on purchase of items. Write a program using switch and if statement to compute the net amount to be paid.

Both comments and pings are currently closed.

2 Responses to “Write A Program Using Switch And If Statement To Compute The Net Amount To Be Paid.?”

  1. Anas Imtiaz says:

    Show your attempt at the code by posting it here. We will only help you correct it, not do it FOR you.
    Do your homework yourself.

  2. James Bond says:

    Which language?
    float amount, net;
    printf(“Enter purchase amountn”);
    scanf(“%f”, &amount);
    if(amount<=100)net=amount; else if(amount<=200) net=0.95*amount; else if(amount<=300) net=0.925*amount; else net=0.9*amount; printf("%fn", net);

Powered by WordPress | Designed by: free css template | Thanks to hostgator coupon and web hosting reviews