Здравейте. Имам проблем със задачата. Не мога да открия грешката си.
A phone bill plan includes
1 hour of free calls and
20 text messages for
12.00 levas . Each additional minute costs
0.10 levas and each additional message costs
0.06 levas . Also, any additional minutes/text messages are subject to
20% sales tax. Write a program that calculates the additional charge for text, the additional charge for minutes, and the sales tax charge for both. Also, display the total amount paid.
- On the first line, you will receive the total amount of text messages.
- On the second line, you will receive the total amount of minutes.
- 1st line - number of additional messages and additional amount paid
- 2nd line - number of additional minutes and additional amount paid
- 3rd line - amount paid in taxes
- 4th line - total bill
11 additional messages for 0.66 levas 55 additional minutes for 5.50 levas 1.23 additional taxes 19.39 total bill
0 additional messages for 0.00 levas 0 additional minutes for 0.00 levas 0.00 additional taxes 12.00 total bill