Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By quad64bit

Thread: Java Stars Program

  1. #1
    DGray16 is offline Member
    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Default Java Stars Program

    Hello,
    I am a new CS student at my college and I'm having problems creating a code. It's for extra credit and I have spent numerous hours trying to complete it.

    Here's the question:
    Create modified versions of the Stars program to print the following patterns. Create a separate program to produce each pattern. Hint: Parts b, c, and d require several loops, some of which print a specific number of spaces.
    a. **********
    *********
    ********
    *******
    ******
    *****
    ****
    ***
    **
    *

    b. *
    **
    ***
    ****
    *****
    ******
    *******
    ********
    *********
    **********

    c. **********
    *********
    ********
    *******
    ******
    *****
    ****
    ***
    **
    *

    c is suppose to be backwards from a.

    d. *
    ***
    *****
    *******
    *********
    *********
    *******
    *****
    ***
    *

    d is suppose to be a diamond.

    *The stars are a little off*
    I have to use while loops to produce each one of these sets of stars.

    Thanks
    Last edited by DGray16; 10-24-2012 at 11:50 PM.

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Java Stars Program

    Nice homework dump, what was your question?
    DarrylBurke likes this.

Similar Threads

  1. Java stars program
    By andnlou2678 in forum New To Java
    Replies: 3
    Last Post: 11-15-2011, 01:47 PM
  2. Two triangles of stars next to each other
    By Aero in forum New To Java
    Replies: 3
    Last Post: 09-26-2011, 08:20 PM
  3. stars
    By nalinda in forum New To Java
    Replies: 3
    Last Post: 08-25-2009, 12:48 PM
  4. Blinking stars
    By jholtt23 in forum New To Java
    Replies: 0
    Last Post: 02-19-2009, 06:38 AM
  5. Need help coding a rhombus in stars
    By LinxuS in forum New To Java
    Replies: 5
    Last Post: 10-18-2008, 01:12 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
  •