Computer Science, asked by paarthshah26supercel, 7 months ago

A hotel is giving seasonal discount on the total amount to be paid by the person staying at the time of check out. The charges for one day stay is 850.0 per room. The discount will be given as per the following criteria: Number of days stayed Discount on total amount Up to 5 days 10% > 5 days and 10 days and 5){ b=15; } else if(a 10){ b=20; } else if(a>20) b=25; else{ System.out.println("Input a proper number"); b=0; } c=a*850; d=b/100; e=c*d; c=c-e; System.out.println(c); } } Something is wrong in this

Answers

Answered by Anonymous
3

Answer:

I HOPE HELP YOU

Explanation:

• A hotel is giving seasonal discount on the total amount to be paid by the person staying at the time of check out. The charges for one day stay is 850.0 per room. The discount will be given as per the following criteria: Number of days stayed Discount on total amount Up to 5 days 10% > 5 days and 10 days and 5){ b=15; } else if(a 10){ b=20; } else if(a>20) b=25; else{ System.out.println("Input a proper number"); b=0; } c=a*850; d=b/100; e=c*d; c=c-e; System.out.println(c); } } Something is wrong in this

Similar questions