Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions

Question

When should the AHP be used compared with the MFEP?

Answered: 1 week ago