User Profile

Collapse

Profile Sidebar

Collapse
kr151080
kr151080
Last Activity: Feb 17 '10, 05:21 PM
Joined: Dec 4 '09
Location: United States
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kr151080
    started a topic Recursion Program Help!?!
    in Java

    Recursion Program Help!?!

    My Original program was to.......

    Write a Java applet that uses recursion to draw a Koch snowflake fractal
    of any given order. A Koch snowflake of order 0 is an equilateral
    triangle. To create the next-higher-order fractal, each line segment in
    the shape is modified by replacing the middle third with a sharp
    protrusion made of two line segments, each having the same length as the
    replaced one.........
    See more | Go to post

  • kr151080
    started a topic Java measurement program
    in Java

    Java measurement program

    I need some help with a Measurement Program I Wrote.....I have this code as the main workings of my program:
    Code:
    import java.util.*;
    
    public class Measurement{
    {
      static Scanner console = new Scanner(System.in)
      public static void main(String[] args);
      double feet, inches, feetTotal, inchTotal, centTotal;
      boolean done;
      String str;
    
      ConvExc checkForZero = new ConvExc();
    ...
    See more | Go to post
    Last edited by Frinavale; Dec 17 '09, 09:38 PM. Reason: Please post code in [code]...[/code] tags. Added code tags.

  • i've looked around at the GregorianCalend ar and still have no clue what i'm doing hah...
    See more | Go to post

    Leave a comment:


  • I understand the concept you're telling me, and i've already begun to write the new program....i have:

    Set the Month
    -Set the Day
    -Set the Year

    -Return the Month
    -Return the Day
    -Return the Year

    -Test whether the year is a leap year

    all finished....Now i don't really have any idea where to start writing the code for:

    -Return the number of days...
    See more | Go to post

    Leave a comment:


  • I have not learned inheritance..??
    See more | Go to post

    Leave a comment:


  • I need some help with a date program can anyone help?

    Ok so I am messing around with a program and have no idea how to go about doing this but here is the code for the class date....

    Code:
    public class Date
    {
    private int dMonth;
    private int dDay;
    private in dYear;
    
    public Date()
    {
    dMonth = 1;
    dDay = 1 ;
    dYear = 1900;
    
    }
    
    public Date(int month, int day, int year)
    {
    dMonth = month;
    ...
    See more | Go to post
No activity results to display
Show More
Working...