1. Enrollment Seasonby CodeChum AdminIt's enrollment season again but for some reason the system just stopped working! I think we can fix it but we're going to need a temporary payment system while we...


1. Enrollment Season
by CodeChum Admin


It's enrollment season again but for some reason the system just stopped working! I think we can fix it but we're going to need a temporary payment system while we get this thing going. You up for it? Great! Here are the details:






[1] - Cash - 10% Discount


[2] - Two-installment - 5% interest


[3] - Three-installment - 10% interest






Note: A discount will decrease the total amount while an interest will increase the total amount.


Input


The first line contains the mode of payment.
The second line contains the amount to be discounted/increased.


1
21875.50
Output


The total amount to be paid.


19687.95
Nov 13, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here