Results 1 to 3 of 3

Thread: noob issue

  1. #1
    disturbe13 is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default noob issue

    im trying to learn java and i cant figure out what this means

    can someone elaborate what these issues mean?
    im using TextPad, my source code is below

    /*
    CableBilling
    Programmer: Allen Arnold
    Date: 10.11.12
    Filename: clientBilling
    Purpose: To expodite the billing process for the customer.
    */

    import java.io.*;

    public class clientBilling
    {
    public static void main(String [] args) throws IOException
    {
    //declare and construct variables
    String accountNumber, customerCode, preChan, busCon, R, r, B, b;
    int numPremChan, numBasCon, resBill, num, number, bezBill;

    //the party begins
    System.out.println("\tPlease enter the Account Number:");
    accountNumber = dataIn.readLine();
    System.out.println("\tPlease enter the Customer Code:");
    customerCode = dataIn.readLine();
    System.out.println("\tPlease press R or r for Residential, or B or b for Business.");
    if (R||r)
    {
    System.out.println("\tHow many Premium Channels?");
    preChan = dataIn.readLine();
    numPremChan = Integer.parseInt(preChan);
    resBill=((7.5 * numPremChan)+25);
    System.out.println(accountNumber + " - " + customerCode + " " +"The bill is:" + resBill);
    }
    else
    {
    System.out.println("\tHow many Basic Connections?");
    busCon = dataIn.readLine();
    numBasCon = Integer.parseInt(busCon);
    num=(numBasCon-10);
    if (num > 10)
    {
    number=((num - 10)*5+75);
    }
    else
    {
    number = 75;
    }
    bezBill=(number + 65);
    System.out.println(accountNumber + " - " + customerCode + " " +"The bil is:" + bezBill);
    }
    }
    }

  2. #2
    disturbe13 is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default Re: noob issue

    blast it didnt take my formatting :(
    Java Code:
    /*
    	CableBilling
    	Programmer:	Allen Arnold
    	Date:		10.11.12
    	Filename:	clientBilling
    	Purpose:	To expodite the billing process for the customer.
    */
    
    import java.io.*;
    
    public class clientBilling
    {
    	public static void main(String [] args) throws IOException
    	{
    		//declare and construct variables
    		String accountNumber, customerCode, preChan, busCon, R, r, B, b;
    		int numPremChan, numBasCon, resBill, num, number, bezBill;
    
    		//the party begins
    		System.out.println("\tPlease enter the Account Number:");
    			accountNumber = dataIn.readLine();
    		System.out.println("\tPlease enter the Customer Code:");
    			customerCode = dataIn.readLine();
    		System.out.println("\tPlease press R or r for Residential, or B or b for Business.");
    			if (R||r)
    			{
    				System.out.println("\tHow many Premium Channels?");
    					preChan = dataIn.readLine();
    					numPremChan = Integer.parseInt(preChan);
    				resBill=((7.5 * numPremChan)+25);
    				System.out.println(accountNumber + " - " + customerCode + " " +"The bill is:" + resBill);
    			}
    			else
    			{
    				System.out.println("\tHow many Basic Connections?");
    					busCon = dataIn.readLine();
    					numBasCon = Integer.parseInt(busCon);
    						num=(numBasCon-10);
    							if (num > 10)
    							{
    								number=((num - 10)*5+75);
    							}
    							else
    							{
    								number = 75;
    							}
    				bezBill=(number + 65);
    				System.out.println(accountNumber + " - " + customerCode + " " +"The bil is:" + bezBill);
    			}
    	}
    }

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,435
    Blog Entries
    7
    Rep Power
    20

    Default Re: noob issue

    Well, the most frequent error says that the compiler doesn't know what 'dataIn' is supposed to be. What is it?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. I am a super noob with a super noob question.
    By LittleZoppo in forum Java Applets
    Replies: 3
    Last Post: 04-27-2012, 03:50 AM
  2. Regular Expression issue and setName() method issue
    By geforce in forum New To Java
    Replies: 2
    Last Post: 01-30-2012, 03:33 AM
  3. Replies: 8
    Last Post: 06-30-2010, 02:30 AM
  4. Very noob, but need help!!!
    By Guilbertda in forum New To Java
    Replies: 2
    Last Post: 02-01-2010, 10:32 PM
  5. Help im a noob.. a super noob on java..
    By critdevil in forum New To Java
    Replies: 12
    Last Post: 03-07-2009, 03:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •