Commission on total Sales coderinme

Commission on total Sales coderinme

Commission on total Sales coderinme
Commission is the overhead amount or the surplus amount or the additional amount or we can say the extra amount that we earn from our respective sales. We are now going to codes a program on calculating the commission earned by any sales man depending upon how much he made a sale of.
The commission on a salesman`s total sale is as follows:
If sale<100, the no commission.
If 100<sale500, then commission =100+8% of sales above 500.
Let’s code this program in C

#include<stdio.h>
int main()
{
float sale;
printf("\nPlease Enter the Sale: ");
scanf("%f",&sale);
if( sale  100 && sale  500 )
{
sale = 100 + ( 8.0 / 100 ) * sale;
printf("\nCommission on the sale = %.2f",sale);
}
getch();
return 0;
}

For more programs in C, visit our C Coder Archives

Commission on total Sales coderinme

All rights reserved. No part of this Post may be copied, distributed, or transmitted in any form or by any means, without the prior written permission of the website admin, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law. For permission requests, write to the owner, addressed “Attention: Permissions Coordinator,” to the admin @coderinme

Leave a reply:

Your email address will not be published.