Hey everyone. I have this homework problem for my IS class and I am having trouble finding the variables and the next step after that. Can someone please help me out? This is the problem.
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.
and there it is. Any help would be greatly appreciated.
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.
and there it is. Any help would be greatly appreciated.
Comment