Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: how to get start at this question

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts

    Default how to get start at this question


    Im new to java programming,i have a question to do but im totally confuse on how to start writing the code @@,i need some help from u guys,can anyone give me an idea on what should i start at the coding

    You are required to write an application called Customer Billing System. This system will calculate water usage charges for a month that has been imposed by Syarikat Air Berhad. This system will categorise users into residential users and industrial users and calculate the charges based on data entered by the user. Data needed are the type of customer (Residential or Industrial), past meter reading and current meter reading.

    Given the charge rate as follows:

    For Residential:
    0 15 m3 : RM 0.82 every m3
    15.1 40 m3 : RM 0.65 every m3
    40.1 m3 and above : RM 0.42 every m3
    Minimum charge is RM 5.00

    For Industrial:
    0 m3 and above : RM 1.47 every m3
    Minimum charge is RM15.00

    The above application must be able to hold information for up to 5 customers. Use an array and repetition structure to store information about users such as type of customer, past meter reading, current meter reading and charges. Write a structured Java program to develop the above system by following the steps below:

    a) Prompt the user to input the type of customer, past meter reading and current meter reading. Next, get the difference between current meter reading and past meter reading.
    b) Separate them as either R/r for Residential or I/i for Industrial. You can use any one of the two selection structures.
    c) Calculate the charges based on rates given above. If there is no water consumption, the minimum charge will be imposed. You can use any one of the two selection structures.
    d) Display information about the type of customer, past meter reading, current meter reading and charges for each customer. Print the information in table format.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,627 Times in 2,577 Posts

    Default Re: how to get start at this question

    First make a design for the program by listing the steps it needs to do to solve the problem. Then write the code for each step, compile it and test it. When the code works, move to the next step in the list.
    If you have problems with coding any of the steps, post a description of the step and the code you are having problems with.
    If you have any specific java programming questions, ask them.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Can someone please help me get a start on this project?
    By MLeclerc in forum Object Oriented Programming
    Replies: 1
    Last Post: April 25th, 2012, 09:30 AM
  2. How to start
    By ashwinjava in forum Member Introductions
    Replies: 2
    Last Post: January 29th, 2012, 04:03 PM
  3. Where do i start?
    By cejay in forum Java Theory & Questions
    Replies: 9
    Last Post: September 10th, 2011, 04:21 PM
  4. Start With JAVA
    By infoprovider in forum The Cafe
    Replies: 2
    Last Post: July 28th, 2010, 04:34 AM
  5. Where to start?
    By tonykasdorf in forum Java Theory & Questions
    Replies: 3
    Last Post: March 4th, 2010, 11:52 PM