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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!