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
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
English,
3 months ago
English,
3 months ago
Math,
3 months ago
Math,
7 months ago
Chemistry,
7 months ago
Social Sciences,
11 months ago
Science,
11 months ago
Social Sciences,
11 months ago