Need Help, How to round off to the nearest 5 sen?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

  1. The problem statement, all variables and given/known data:#include <stdio.h>
    #define GTAX 0.06
    #define STAX 0.10
    int main(void)
    {
    int C_sets;
    double Price_C;
    double Sets_amount;
    double Gov_amount;
    double Ser_amount;
    double Sub_total;
    double D_voucher;
    double A_payable;
    double Adjusted_p;
    double cash;
    double change_due;

    printf("Enter numbers of COMBO SETS >\t");
    scanf("%d",&C_sets);
    printf("Enter Price Per COMBO SETS >\tRM");
    scanf("%lf",&Price_C);

    Sets_amount=(float)C_sets * Price_C;
    Gov_amount=(float)GTAX * Sets_amount;
    Ser_amount=(float)STAX * Sets_amount;
    Sub_total=(float)Sets_amount + Gov_amount + Ser_amount;

    printf(" ////////////\\ \n");
    printf(" ///////////// \\ \n");
    printf(" ////////////// \\ \n");
    printf(" | | |\n");
    printf(" | K K L FFFF CCC |\n");
    printf(" | K K L F C |\n");
    printf(" | KK L FFF C |\n");
    printf(" | K K L F C |\n");
    printf(" | K K LLLL F CCC |\n");
    printf(" = = = = = = = = = = = = \n\n");

    printf("\t Good Day And Welcome to KLFC Sdn. Bhd.\n\n");
    printf(" R E C E I P T \n");
    printf("@+ * * * * * * * * * * + * * * * * * + * * * * * * * * + @\n");
    printf(" | Description\t\t| Rate\t| Amount (RM) |\n");
    printf("@+ * * * * * * * * * * + * * * * * * + * * * * * * * * + @\n");
    printf(" < COMBO SETS * %d |%10.2lf |%15.2f >\n",C_sets, Price_C, Sets_amount);
    printf(" < Government Tax |%10.2lf%% |%15.2f >\n",GTAX, Gov_amount);
    printf(" < Service Tax |%10.2lf%% |%15.2f >\n",STAX, Ser_amount);
    printf("@+ * * * * * * * * * * + * * * * * * + * * * * * * * * + @\n");
    printf(" < S U B T O T A L | %14.2lf >\n",Sub_total);
    printf("@= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =@\n");
    printf(" < Discount Voucher (RM) >\t");
    scanf("%lf", &D_voucher);
    printf(" <\t\t\t - - - - - \t\t\t >\n");

    A_payable=(float)Sub_total - D_voucher;
    printf(" < Amount Payable %10.2f\t\t\t >\n",A_payable);
    printf(" <\t\t\t = = = = = \t\t\t >\n");
    printf("@= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =@\n");
    printf("\t\t CASH \t\t");
    scanf("%lf",&cash);
    change_due=cash - A_payable;
    printf("\t\t Change Due \t %.2lf\n",change_due);
    printf("= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \n");
    printf("\t THANK YOU and HAVE A NICE DAY \n");

    return 0;

} how to adjust the amount payable into nearest 5 sen??

  1. Relevant commands, code, scripts, algorithms:

  2. The attempts at a solution (include all code and scripts):

  3. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).

Closed, for template NOT fully filled, read the rules again!