Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

Describe How to Develop and Communicoie o Vision.

Answered: 1 week ago