Question
Write a program to compute telephone bills for the local telephone company. Each customer has a base charge of 12.95 per month and gets charged
Write a program to compute telephone bills for the local telephone company. Each customer has a base charge of 12.95 per month and gets charged extra for each local call and each long-distance call. The program should prompt the user for the number of local calls made during the month. The charge for each local call is $0.10. Use the + = operator to add the cost of the local calls to the total bill. Then the program should prompt the user for the total charge for long-distance calls made during the month. Use the + = operator to add the long-distance charges to the total bill. Finally, the program should calculate the tax on the total bill. The tax rate is 8.72%. Use the *= operator to add the tax to the total bill by multiplying the total bill by 1.0872. The program should display the base charge, cost of the local calls, the cost of the long distance calls, the tax, and the total bill.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started