Question: Write a java program to calculate phone bill. It includes rates for two different services: Servvice 1 Regular Choice Plan: $20.00 plus 50 minutes free.

Write a java program to calculate phone bill. It includes rates for two different services: Servvice 1 Regular Choice Plan: $20.00 plus 50 minutes free. charges over 50 minutes are computed at a rate of $.30 per min. Service 2: $25.00 fee plus a daytime call from 7am to 7pm, the first 65 minutes are free. For night from 7pm to 7am first 60 mins are free. charges overage are calculated at .05 per mins

Prompt user to enter account #, integer type for service code, bill amount due, and minutes used. service 1 service code is 0. Service 2 service code is 1.

customer may use service 2 during day and night.

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!