Results 1 to 2 of 2
Thread: Java Stars Program
- 10-24-2012, 10:38 PM #1
Member
- Join Date
- Oct 2012
- Posts
- 1
- Rep Power
- 0
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.
ThanksLast edited by DGray16; 10-24-2012 at 10:50 PM.
- 10-24-2012, 11:16 PM #2
Similar Threads
-
Java stars program
By andnlou2678 in forum New To JavaReplies: 3Last Post: 11-15-2011, 12:47 PM -
Two triangles of stars next to each other
By Aero in forum New To JavaReplies: 3Last Post: 09-26-2011, 07:20 PM -
stars
By nalinda in forum New To JavaReplies: 3Last Post: 08-25-2009, 11:48 AM -
Blinking stars
By jholtt23 in forum New To JavaReplies: 0Last Post: 02-19-2009, 05:38 AM -
Need help coding a rhombus in stars
By LinxuS in forum New To JavaReplies: 5Last Post: 10-18-2008, 12:12 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks