Results 1 to 9 of 9
  1. #1
    appy is offline Member
    Join Date
    Oct 2013
    Posts
    5
    Rep Power
    0

    Default Help For School Project!

    I Don't Know If I'm Posting This At The Rite Place Or Not!!

    I've Been Given HomeWork From The School To Do A Java Project And I Have To Create Data Description For The Programs.

    The Following Fields Should Be There,
    Integer | Type | Scope | Purpose.


    As Example Given From The Teacher,
    Integer | Type | Scope | Purpose.
    i | int | main() | Controls For Loop.

    I Have To Do It For The Following Two Programs:-
    PalindRome
    Integer To Octal And Binary

    Programs :
    Integer To Binary And Decimal

    Java Code:
    import java.io.*;
    class decbin
    {
    public static void main()
    {
    int i;
    int o=0,n=0;
    DataInputStream obj=new DataInputStream(System.in);
    try
    {
    System.out.println("Enter The Value Of n =");
    n=Integer.parseInt(obj.readLine());
    }
    catch (IOException e)
    {
    }
    System.out.println("Binary Answer Is:" + (Integer.toBinaryString(n)));
    System.out.println("Octal Answer Is:" + (Integer.toOctalString(n)));
    }
    }
    PalindROme
    Java Code:
    import java.io.*;
    class PalindRome
    {
    public static void main()throws IOException
    {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Enter Any Integer");
    int n=Integer.parseInt(br.readLine());
    int digit=0,copy=n,rev=0;
    while(n!=0)
    {
    digit = n%10;
    rev=(rev*10)+digit;
    n=n/10;
    }
    if (rev==copy)
    {
    System.out.println("PalindRome");
    }
    else
    {
    System.out.println("Not PalindRome");
    }
    }
    }
    Please Help Me!!

  2. #2
    appy is offline Member
    Join Date
    Oct 2013
    Posts
    5
    Rep Power
    0

    Default Re: Help For School Project!

    Help For School Project!-data.png Also A Visual Example For Armstrong Number.

    Program :
    Java Code:
    import java.util.*;
    class arm extends Pattern2
    {
    public static void main(String ar[])
    {
    System.out.println("Enter Any No.");
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int c=a,d=0,s=0;
    while(c>0)
    {
    d=c%10;
    s=(d*d*d)+s;
    c=c/10;
    }
    if(s==a)
    {
    System.out.println("ArmStrong");
    }
    else
    {
    System.out.println("Not ArmStrong");
    }
    }
    }

  3. #3
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: Help For School Project!

    Do you have any questions?
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  4. #4
    appy is offline Member
    Join Date
    Oct 2013
    Posts
    5
    Rep Power
    0

    Default Re: Help For School Project!

    Yeah How To Create The Data Description For The Two Programs!!

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Help For School Project!

    Surely you can start?
    And then if you hit a problem ask a question.
    Because this is not the place to get someone to do your homework for you.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    appy is offline Member
    Join Date
    Oct 2013
    Posts
    5
    Rep Power
    0

    Default Re: Help For School Project!

    T_T I'm Not Asking To Do My ProJect!!
    I've Completed Every Thing And Just Not Able To Create The Data Description!! Was Just Asking How To Do!! What To Enter In Purpose T_T

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Help For School Project!

    But you've been given a table showing what you need to find in your code.
    You should (at the least) be able to populate the first couple of columns.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  8. #8
    appy is offline Member
    Join Date
    Oct 2013
    Posts
    5
    Rep Power
    0

    Default Re: Help For School Project!

    i cant get what to type in purpose bro :(

  9. #9
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,096
    Rep Power
    4

    Default Re: Help For School Project!

    As far as I can tell, the column "purpose" is just the description the teachers gave to the fields you are supposed to introduce.

Similar Threads

  1. Need help with school project
    By camaro01 in forum New To Java
    Replies: 16
    Last Post: 02-20-2011, 07:34 PM
  2. School project help!
    By Addez in forum Advanced Java
    Replies: 5
    Last Post: 09-17-2010, 11:37 PM
  3. Need help with school project!
    By jaxxx in forum New To Java
    Replies: 5
    Last Post: 03-25-2010, 09:55 PM
  4. so very lost on school project....
    By Moltisanti in forum New To Java
    Replies: 19
    Last Post: 09-23-2009, 09:39 AM
  5. school project help
    By justin8790 in forum New To Java
    Replies: 5
    Last Post: 03-22-2009, 10:54 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
  •