Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

Write a java program that calculates and prints the bill for

 

Customer Question

Write a java program that calculates and prints the bill for a cellular telephone company. The company offers 2 types of services: regular and premium. Rates vary based on the type of service and are computed as follows: Regular service: $10 plus first 50 minutes are free. Charges for over 50 minutes are $.20 per minute. Premium service: $25 plus    &nb sp;                                                                                A. for calls made from 6am -6pm, first 75 min are free; charges over 75 min are $.10 per minute.                     B. calls made from 6pm-6am, first 100 min are free. Charges over 100 min are $.05 per min

 

Optional Information:
OS: Windows Vista

Already Tried:
program should prompt the user to enter an account number, a service code (type char), and the number of minutes the service was used. A service code of r or R means regular service; a service code of p or P means premium service. Treat any other character as an error. Program should output the account number, type of service, number of minutes used, and amount due from the user. You must ask the user to input the number of minutes the service was used during the day and the number of minutes the service was used at night.

Submitted: 1511 days and 6 hours ago.
Category: Programming
Value: $20
Status: CLOSED

Accepted Answer

Picture
Expert:  helpdesk replied 1511 days and 5 hours ago.

Hi,
I am attaching your java code below:-

CODE!

Hope your problem is solved.Don't forget to give a positive feedback after pressing the accept button.
Any amount of bonus is appreciated.

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 100.0 %
Accepts: 28
Answered: 2/19/2009

Experience: Years of experience on C,C++, java,visual basic

Ask this Expert a Question >
Customer replied 1511 days and 5 hours ago.

NICE WORK! THANK YOU!

Picture
Expert:  helpdesk replied 1511 days and 5 hours ago.

You are welcome.Do contact me in future if you have any programming queries.

Customer replied 1511 days and 5 hours ago.

I have one more java program if you are interested

 

Design a java program that uses the switch statement and asks the user to select one of three television models. The program should provide a description of the models. Using the fall-through capability of the switch statement, display the model chosen, the description, and the price. The user should make a selection by model number: Model 100 comes with remote control, timer, and stereo sound and costs $1000. Model 200 comes with all the features of model 100, plus picture in picture; it costs $1200. Model 300 comes with all features of model 200 plus HDTV, flat screen, and 16x9 aspect ratio; it costs $2400. USE THE FOLLOWING DESCRIPTION AND PROMPT FOR THE PROGRAM. 1. This program asks the user to enter a television model #. 2. The description of the model chosen will be displayed. 3. Please enter the model number chosen. 4. Model 100 comes with remote control, timer and stereo sound and costs $1000. 5. Model 200 comes with all features of model 100 .......... 6. Model 300 ................... WRITE YOUR DESIGN AS A LIST OF JAVA COMMENTS WITHOUT ANY CODE

Customer replied 1511 days and 5 hours ago.

Write the program using the switch statement, and then test with different values. No futher details are available.

Picture
Expert:  helpdesk replied 1511 days and 5 hours ago.

Hi,
I am going offline as i have some urgent work.Post it as new question.Some other expert will help you.
If not i will come back and try your question.

Customer replied 1511 days and 5 hours ago.

OK, I will post it. Thank YOU!

 
Tweet

4 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
C ProgrammingDecode LabYour assignment is to write a C 4/9/2013
Reference the following instructions to assist you when completing 4/8/2013
First you will present the pseudo code with all the modules 4/8/2013
NA-112 4/8/2013
The first programming project involves completing a program 4/8/2013
RA-201 4/7/2013
This is my final exam for my c programming class. It is due 4/7/2013
Program Description Your program will display (see the sample 4/6/2013
RA-211 4/3/2013
ra-614 4/2/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
95 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us
© 2003-2013 JustAnswer LLC