Bookmark Topic Watch Topic
  • New Topic

While-Loop - Please help!!!  RSS feed

 
Mimi Sini
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Report post to moderator
hey everyone, can anyone help me with a while loop assignment i'm trying to figure out, i just started this class and i'm so lost,

1.I have to write a script with a while-loop using font and size to display 7 hello's - smallest size down to largest
2.I have to write a script with a while-loop displaying using the rgb function to desplay 10 Hello's same size but going from red to green.

I am so lost! Please help someone.. thanks!!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37513
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Mimi,
Welcome to JavaRanch!

The simplest way to figure out a programming problem is to break it into smaller problems, solve those and combine it. For example,
1a) Can you write a while loop that executes 7 times?
1b) Can you output two hellos of different sizes?
2a) Can you write a while loop that executes 10 times?
2b) Can you display red? Can you display green? Can you display halfway between red and green?

Try showing what you have for some of these and what you are stuck on.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!