\\-help Java Assignments-//

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • UHOH
    New Member
    • Apr 2007
    • 1

    #1

    \\-help Java Assignments-//

    Alright new to java and thought you guys might help me out understanding how to write programs...


    I got the basics down, here are a few assignments I got and maybe you can hurry and write them so I can learn...

    Thanks...

    #1

    Bermuda Triangles:

    PROGRAM:Write a program that accepts the number of rows as input. The program should produce a multiplication triangle of n rows.


    EX: Please enter the number of rows: 6

    The multiplication triangle
    1
    2 4
    3 6 9
    4 8 12 16
    5 10 15 20 25
    6 12 18 24 30 36

    #2

    PROGRAM: Finding Factorials

    //Write a program that finds the factorial of a value entered by the user.

    To calculated 12! (12 Factorial) for example the program should calculate the value of
    1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12

    #3

    Program: Factors

    //Write a program that determines all the factors of a given number,

    SAMPLE OUTPUT:
    The factors of 24 are:

    1,2,3,4,6,8,12, 24

    This will be greatly appreciated and put to good use for me and few buddies trying to learn...

    ASAP would be nice ;)
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by UHOH
    I got the basics down, here are a few assignments I got and maybe you can hurry and write them so I can learn...
    IMHO it's better for your learning if you try to write the exercises yourself. We
    can help you when you're stuck. Just ask a specific question here and I'm sure
    someone will supply you an answer.

    kind regards,

    Jos

    Comment

    Working...