Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help Starss
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
salah_1192




PostPosted: Wed May 07, 2008 6:35 pm   Post subject: Help Starss

HEY GUYs i need to make a program exactly like this can you help me out

i need to use nested loops to do this
thanks in advance

Posted Image, might have been reduced in size. Click Image to view fullscreen.[/img]
Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: Thu May 08, 2008 1:13 pm   Post subject: RE:Help Starss

We are not going to tell yo uthe coding;
bu tI may be able to help with the logistics:

try breaking it up into two halves
or sections: one being spaces (0 in this
example) and the other *s. As the number of
*s increase by 2, the spaces (or 0s) decrease
by 1.

0000*
000***
00*****
0*******
*********

Hope that helps!
salah_1192




PostPosted: Thu May 08, 2008 6:39 pm   Post subject: Re: RE:Help Starss

SNIPERDUDE @ Thu May 08, 2008 2:13 pm wrote:
We are not going to tell yo uthe coding;
bu tI may be able to help with the logistics:

try breaking it up into two halves
or sections: one being spaces (0 in this
example) and the other *s. As the number of
*s increase by 2, the spaces (or 0s) decrease
by 1.

0000*
000***
00*****
0*******
*********

Hope that helps!


yes i understand however i have to use a nested loop
SNIPERDUDE




PostPosted: Mon May 12, 2008 1:20 pm   Post subject: RE:Help Starss

Have the outside loop counting down,
and the inside loop counting up.

...provided you use nested for (While) loops
If you're not allowed to use those just use
variables to count.
salah_1192




PostPosted: Mon May 12, 2008 8:13 pm   Post subject: Re: Help Starss

Quote:
Have the outside loop counting down,
and the inside loop counting up.

...provided you use nested for (While) loops
If you're not allowed to use those just use
variables to count.
_________________
You're only sick as your secrets, but the truth will set you free...


Yes i know what a nested loop is however i dont know how to do it so that the shape is such
can you be more ellaborative
i really appreciate the help
syntax_error




PostPosted: Mon May 12, 2008 10:57 pm   Post subject: RE:Help Starss

trace through the shape to see how you would draw it line by line and see a pattern then recreate it in the for loop like structure , with this kind of program giving more then guild lines sorta gives the answer away.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: